Query cluster state using scripting

 

+

Search Tips   |   Advanced Search

 

Jacl

### Identify the Cluster MBean and assign it to the cluster variable.
set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,*

### Query the cluster state.
$AdminControl getAttribute $cluster state

Jython

cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*')
print cluster

AdminControl.getAttribute(cluster, 'state')



 

See Also


Commands for the AdminControl object