]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars/cli: add a "get var" CLI command to retrieve global variables
authorWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 13:51:31 +0000 (14:51 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 Mar 2021 15:52:13 +0000 (16:52 +0100)
commitc35eb38f1d3dc54cf04758628b061990cf18f14b
tree38279976c802f714f367a07e141810f53066dd17
parent2f836de100ee0346b0360dd64c1e29aab3d05cfb
MINOR: vars/cli: add a "get var" CLI command to retrieve global variables

Process-wide variables can now be displayed from the CLI using "get var"
followed by the variable name. They must all start with "proc." otherwise
they will not be found. The output is very similar to the one of the
debug converter, with a type and value being reported for the embedded
sample.

This command is limited to clients with the level "operator" or higher,
since it can possibly expose traffic-related data.
doc/management.txt
reg-tests/sample_fetches/vars.vtc
src/vars.c