Example: Stopping a cluster using wsadmin
The following example stops a cluster:
- Identify the Cluster MBean and assign it to the cluster variable.
set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1]This command returns the Cluster MBean.Example output:
WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1- Stop the cluster.
$AdminControl invoke $cluster stopThis command invokes the stop operation on the Cluster MBean.