Stop clusters using scripting
Procedure
- Start wsadmin
- Identify the Cluster MBean and assign it to the cluster variable.
set cluster [$AdminControl completeObjectName cell=mycell,type=Cluster,name=cluster1,* cluster = AdminControl.completeObjectName('cell=mycell,type=Cluster,name=cluster1,*') print clusterThis command returns the Cluster MBean.
Example output:
WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1- Stop the cluster.
This command invokes the stop operation on the Cluster MBean.
See Also
AdminControl object for scripted administration
Related Tasks
Starting a cluster using scripting
See Also
Commands for the AdminControl object