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

Category: Web Servers & Proxies

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

Show HAProxy backend and server statistics

Returns a table of every frontend, backend, and server with counters like current sessions, errors, and status. Pipe through column -t to align the CSV-style output. This is the command-line equivalent of the web stats page.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.