Reference
show env
On this page
Display current load balancer process and environment information.
Description Jump to heading
Use show env to show environment variables and information from the running configuration.
Examples Jump to heading
Display all environment information Jump to heading
Query the Runtime API with show env to display environment information.
nixecho "show env" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
nixecho "show env" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
outputtextLANG=C.UTF-8PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/binNOTIFY_SOCKET=/run/systemd/notifyINVOCATION_ID=7a7ca4b99e3b4b928a33151b92f10614JOURNAL_STREAM=9:12696369CONFIG=/etc/hapee-3.2/hapee-lb.cfgPIDFILE=/run/hapee-3.2-lb.pidOPTIONS=HAPROXY_LOCALPEER=haproxy1HAPROXY_CFGFILES=/etc/hapee-3.2/hapee-lb.cfgHAPROXY_MWORKER=1HAPROXY_CLI=unix@/var/run/hapee-3.2/hapee-lb.sock;sockpair@7HAPROXY_MWORKER_REEXEC=1
outputtextLANG=C.UTF-8PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/binNOTIFY_SOCKET=/run/systemd/notifyINVOCATION_ID=7a7ca4b99e3b4b928a33151b92f10614JOURNAL_STREAM=9:12696369CONFIG=/etc/hapee-3.2/hapee-lb.cfgPIDFILE=/run/hapee-3.2-lb.pidOPTIONS=HAPROXY_LOCALPEER=haproxy1HAPROXY_CFGFILES=/etc/hapee-3.2/hapee-lb.cfgHAPROXY_MWORKER=1HAPROXY_CLI=unix@/var/run/hapee-3.2/hapee-lb.sock;sockpair@7HAPROXY_MWORKER_REEXEC=1
Display only one environment variable’s information Jump to heading
Available since
- HAProxy 3.1
- HAProxy Enterprise 3.1
Provide the name of a specific environment variable to the show env command to show only that environment variable. Here we retrieve HAPROXY_UID:
nixecho "show env HAPROXY_UID" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
nixecho "show env HAPROXY_UID" | \sudo socat stdio tcp4-connect:127.0.0.1:9999
outputtextHAPROXY_UID=haproxy
outputtextHAPROXY_UID=haproxy
See also Jump to heading
Do you have any suggestions on how we can improve the content of this page?