Query the server state

 


  1. 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.

  2. Query for the state attribute.

    $AdminControl getAttribute $server state
    

    The getAttribute command returns the value of a single attribute.

    Example output:

    STARTED