You can query cluster states using the wsadmin tool and scripting.
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
WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1
$AdminControl getAttribute $cluster state
AdminControl.getAttribute(cluster, 'state')