I've tried many many jmx query tools from the command line,
windows has the jconsole tool which is a part of the Java binaries pack, and works fine,
but it is not a command line tool – it has a nice GUI.
this command line jar works like a charm,
displays all the beans it finds, and allows you to invoke them ,
take a look at :
only the cmdline-jmxclient-0.10.3.jar files is available for some reason,
searches in google didnt find the newer file at all.
than you run it with :
java -jar cmdline-jmxclient.jar – SERVER:PORT
to get a listing of all the available beens.
more samples are available on the link above.
works like a charm!