How to get server-group status in jboss-cli

jboss

How can I get server-group status (started|stopped) via jboss-cli.sh?

Best Answer

First it is not correct to talk about server-group status. server-group may consist of several server-configs and they in turn may have different statuses. To find out the server-config status, the following command may be used:

/opt/jboss7/bin/jboss-cli.sh --connect --command='ls /host=nodeName/server-config=serverName' | grep 'status='
Related Topic