Stopping a resource group
You can stop a resource group that has the nominal state of Online.
About this task
As the HCL Workload Automation instance user, issue the TWAHome/TWS/TSAMP/stopResourceGroup.sh script. The nominal state of the resource group changes to Offline, but the operational state changes to Pending Offline first, then to Offline.
For example:
$ lssam | grep broker
Online IBM.ResourceGroup:broker-rg Nominal=Online
|- Online IBM.Application:broker-rs
|- Offline IBM.Application:broker-rs:tws1
'- Online IBM.Application:broker-rs:tws2
$ stopResourceGroup.sh broker-rg
RC = 0
$ lssam | grep broker
Pending offline IBM.ResourceGroup:broker-rg Nominal=Offline
'- Pending offline IBM.Application:broker-rs
|- Offline IBM.Application:broker-rs:tws1
'- Pending offline IBM.Application:broker-rs:tws2
$ lssam | grep broker
Offline IBM.ResourceGroup:broker-rg Nominal=Offline
'- Offline IBM.Application:broker-rs
|- Offline IBM.Application:broker-rs:tws1
'- Offline IBM.Application:broker-rs:tws2