Is that the exact command you are using? Works fine for me on RHEL5 operating system (for JBoss-5.0 GA)
twiddle.sh -s localhost get jboss.system:type=ServerInfo
jap, on all my other servers it is working too like this.
but not on this server:
/opt/server/jboss-4.0.5.GA/bin # ./twiddle.sh -s localhost get jboss.system:type=ServerInfo
A JMX client to 'twiddle' with a remote JBoss server.
usage: twiddle.sh [options] [command_arguments]
-h, --help Show this help message
--help-commands Show a list of commands
-H= Show command specific help
-c=command.properties Specify the command.properties file to use
-D[=] Set a system property
-- Stop processing options
-s, --server= The JNDI URL of the remote server
-a, --adapter= The JNDI name of the RMI adapter to use
-u, --user= Specify the username for authentication
-p, --password= Specify the password for authentication
-q, --quiet Be somewhat more quiet
its strange. i copied a twiddle.sh from another server and now its working.
Sometimes it helps to enclose the mbean name within quotes:
./twiddle.sh -s localhost get "jboss.system:type=ServerInfo"
i tried this too. but this doesnt help. i had to copy another twiddle.sh, so now it works.
Maybe someone had edited the other twiddle.sh