Query the server state
- Identify the server and assign it to the server variable.
set server [$AdminControl completeObjectName cell=cellname,node=nodename,name=servername,type=Server,*]This command returns the server MBean that matches the partial object name string.
- Query for the state attribute.
$AdminControl getAttribute $server stateThe getAttribute command returns the value of a single attribute.
Example output:
STARTED