The following examples demonstrate how to list running server groups in the WebSphere Application Server V4.0 and V5.x:
set groups [ServerGroups list] foreach sgroup $groups { set thestate [ServerGroup show $sgroup -attribute {Name CurrentState} puts $thestate }
Using Jacl:
set clusters [$AdminControl queryNames type=Cluster,*] foreach scluster $clusters { set thestate [$AdminControl getAttributes $scluster {clusterName state}] puts $scluster $thestate }