Reference

get var

Available since

  • HAProxy 2.4
  • HAProxy Enterprise 2.4r1

Get attributes of a process-wide variable.

Description Jump to heading

Show the existence, type, and contents of the named process-wide variable. Only process-wide variables are readable, so the name must begin with proc.. Other names fail. This command requires a CLI level of operator or admin.

Examples Jump to heading

Get attributes of process-wide variable proc_arch:

bash
echo "get var proc.arch" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
bash
echo "get var proc.arch" | \
sudo socat stdio tcp4-connect:127.0.0.1:9999
output
bash
proc.arch: type=str value=<arch1>
output
bash
proc.arch: type=str value=<arch1>

See also Jump to heading

If this page was useful, please, Leave the feedback.