JBoss 5 provides a simple command line tool that allows for interaction with a remote JMX server instance. This tool is called jboss twiddle (for twiddling bits via JMX) and is located in the bin directory of the distribution. Twiddle is a command execution tool, not a general command shell.
The syntax of this tool is:
twiddle.sh [options] <command> [command_arguments]
So if you want to see the list of MBeans published simply pass the “-l” argument to serverinfo
twiddle -s localhost serverinfo -l (for Win Users)
or for Unix machines:
twiddle.sh -s localhost serverinfo -l
NOTE: JBoss 5 is now deprecated. If you have already moved to WildFly, you might be interested in this tutorial: Managing MBeans with WildFly