I'm trying to build some tools that examine a running Zookeeper ensemble, and one of the things I want to do in my tool is to view the complete configuration of that server. The reason I want to do this is because we had an operational mishap in which zoo.cfg was modified but the server was not restarted, and hence it was not running with the configuration that we thought it was using.
I tried 'echo conf | nc my-host 2181', and it does print configuration data, but it seems to only print a very small subset of the various configuration data that can be set. The 'mntr' and 'stat' commands also print some configuration data, but still only a very small subset. Is there a 4-letter-word command (or other live monitoring technique) that I can use to display the *complete* configuration of a running Zookeeper server, so I can exhaustively check the values of all the configuration variables that it's currently using? thanks, bryan