The following examples demonstrate how to list configured server groups in the WebSphere Application Server V4.0 and V6.x.
Use the following examples:
ServerGroup listYou can put the result of this command into a Jacl list and invoke other operations, such as show, or modify, on the members of the list.
$AdminConfig list ServerCluster
AdminConfig.list('ServerCluster')
set myclust [$AdminConfig getid /ServerCluster:mycluster/]
myclust = AdminConfig.getid('/ServerCluster:mycluster/')
set runningCluster [$AdminConfig getObjectName $myclust]
runningCluster = AdminConfig.getObjectName(myclust)
$AdminControl invoke $runningCluster stop
AdminControl.invoke(runningCluster, 'stop')