echo 'show info' | socat stdio /run/haproxy/admin.sock

Category: Web Servers & Proxies

echo 'show info' | socat stdio /run/haproxy/admin.sock

Query HAProxy process info via the admin socket

Pipes the show info command into HAProxy's Unix admin socket, returning uptime, version, and memory stats as key-value pairs. socat bridges stdin and stdout to the socket, and the path is set by the stats socket directive, commonly /run/haproxy/admin.sock on Debian. The same pattern runs every CLI command.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.