You can query cluster states using the wsadmin tool and scripting. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.
Perform the following steps to query cluster state:
set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,*]
cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*') print cluster
This command returns the Cluster MBean.Example output:
WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1
$AdminControl getAttribute $cluster state
AdminControl.getAttribute(cluster, 'state')
This command returns the value of the run-time state attribute.
  Â