zookeeper commands - the four letter words

zookeeper can be monitored and controlled via a few commands. the commands are all four letter words that are sent to the port 2181 using netcat or telnet. the commands are:

dump

(on the leader) list sessions and ephemeral nodes

envi

print server environment details

kill

stop the server

reqs

list outstanding requests

ruok

check for errors. responds "imok" if running, nothing otherwise

srst

reset statistics

stat

list performance and client statistics