The following examples demonstrate how to list configured server groups in the WebSphere Application Server V4.0 and V5.x:
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.
Using Jacl:
$AdminConfig list ServerCluster
You can put the result of this command into a Jacl list and invoke other configuration commands, such as show, or modify, on the members of the list. To invoke operational commands, such as stop, perform the following:
Using Jacl:
set myclust [$AdminConfig getid /ServerCluster:mycluster/]
Using Jacl:
set runningCluster [$AdminConfig getObjectName $myclust]
Using Jacl:
$AdminControl invoke $runningCluster stop