Livestatus queries over network
For SSH connection
ssh -t root@host ''su -site' "lq 'GET hosts\nColumns: name'"
For TLS connection
echo -e "GET hosts\nColumns: name\n"| openssl s_client -connect localhost:6999 -ign_eof -quiet
For Plain text
echo -e "GET hosts\nColumns: name\n" | nc -q1 127.0.0.1 6999 telnet SLAVE PORT
Related articles