# Run Show commands on HAProxy

**URL:** <https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664>\
**Category:** Help!\
**Created:** [March 27, 2019, 6:42am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664 "2019-03-27T06:42:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Thoufiq](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@Thoufiq](https://discourse.haproxy.org/u/Thoufiq)\
**Post date:** [March 27, 2019, 6:42am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664/1 "2019-03-27T06:42:22Z")

</div>

We have installed HAProxy on ubuntu . Where should i run ‘Show’ commands of HAProxy? how can i get into HAProxy configuration management in ubunt?Please help…

---

<div class="post-metadata">

**Author:** ![void\_in](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@void\_in](https://discourse.haproxy.org/u/void_in)\
**Post date:** [March 27, 2019, 8:02am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664/2 "2019-03-27T08:02:11Z")

</div>

If you have installed it through the package manager such as apt, the configuration file will be at /etc/haproxy/haproxy.cfg.

There is no show command in HAProxy to show you the running configure. You can also run ps -ef | grep -i haproxy command to see from where the running haproxy process is reading its configuration.

---

<div class="post-metadata">

**Author:** ![Thoufiq](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@Thoufiq](https://discourse.haproxy.org/u/Thoufiq)\
**Post date:** [March 27, 2019, 10:46am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664/3 "2019-03-27T10:46:20Z")

</div>

Thanks… but under this  
[https://cbonte.github.io/haproxy-dconv/1.7/management.html](https://cbonte.github.io/haproxy-dconv/1.7/management.html)  
I have found some show commands by which i can see the currents states, information, errors and stuffs like that… what are all the commands for? Please help…

---

<div class="post-metadata">

**Author:** ![void\_in](https://avatars.discourse-cdn.com/v4/letter/v/3ec8ea/32.png) [@void\_in](https://discourse.haproxy.org/u/void_in)\
**Post date:** [March 27, 2019, 11:33am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664/4 "2019-03-27T11:33:48Z")

</div>

You can see all the commands that can be run in the socket interactive mode at [https://cbonte.github.io/haproxy-dconv/1.7/management.html#9.3](https://cbonte.github.io/haproxy-dconv/1.7/management.html#9.3) starting from [https://cbonte.github.io/haproxy-dconv/1.7/management.html#9.3-add%20acl](https://cbonte.github.io/haproxy-dconv/1.7/management.html#9.3-add%20acl)

---

<div class="post-metadata">

**Author:** ![Thoufiq](https://avatars.discourse-cdn.com/v4/letter/t/edb3f5/32.png) [@Thoufiq](https://discourse.haproxy.org/u/Thoufiq)\
**Post date:** [April 4, 2019, 9:58am UTC](https://discourse.haproxy.org/t/run-show-commands-on-haproxy/3664/5 "2019-04-04T09:58:52Z")

</div>

Thank you so much for the suggestion… I have added following statements(from above link) in global section and installed ‘socat’  
“stats socket /var/run/haproxy.sock mode 600 level admin”  
“stats timeout 2m”  
I am able to run show commands using “socat /var/run/haproxy.sock stdio” but with this command i can only get output of one command and if i want to run another command i have to again run the stdio command…  
but when i run “socat /var/run/haproxy.sock readline” it is throwing below error  
'socat [4356] E unknown device/address “readline” 'what could be the reason for this error?Please help
