Example: Migrating - Stopping a server group
Stopping a server group involves an operational command. The following examples demonstrate how to stop a server group in WebSphere Application Server V4.0 and V6.x:
- wscp V4.0
ServerGroup stop /ServerGroup:cluster1/- wsadmin V6.x
set clusterMgr [$AdminControl completeObjectName WebSphere:type=ClusterMgr,*] $AdminControl invoke $clusterMgr "retrieveClusters" "" set cl1 [$AdminControl completeObjectName type=Cluster,name=cluster1,*] $AdminControl invoke $cl1 stopclusterMgr = AdminControl.completeObjectName('WebSphere:type=ClusterMgr,*') AdminControl.invoke(clusterMgr, 'retrieveClusters', '') cl1 = AdminControl.completeObjectName('type=Cluster,name=cluster1,*') AdminControl.invoke(cl1, 'stop')