Resetting resources
When a resource is not working appropriately (its operational state is set to Failed Offline), you can reset the resource.
About this task
As the HCL Workload Automation instance user, issue the TWA_home/TWS/TSAMP/resetResource.sh script.
If the nominal state of the group to which the resource belongs is Offline, the operational state of the resource is set to Offline. If the nominal state of the group to which the resource belongs is Online, the system tries to restart the failed resource.
In the following example, the nominal state
of the resource group is Offline:
$ lssam |grep eWAS_tws1
Failed Offline IBM.ResourceGroup:eWAS_tws1-rg Nominal=Offline
'- Failed Offline IBM.Application:eWAS_tws1-rs:tws1
$ resetResource.sh eWAS_tws1-rg tws1
$ lssam |grep eWAS_tws1
Offline IBM.ResourceGroup:eWAS_tws1-rg Nominal=Offline
'- Offline IBM.Application:eWAS_tws1-rs:tws1
In the following example, the nominal state of
the resource group is Online:
$ lssam |grep eWAS_tws1
Failed Offline IBM.ResourceGroup:eWAS_tws1-rg Nominal=Online
'- Failed Offline IBM.Application:eWAS_tws1-rs:tws1
$ resetResource.sh eWAS_tws1-rs tws1
$ lssam |grep eWAS_tws1
Pending online IBM.ResourceGroup:eWAS_tws1-rg Nominal=Online
'- Pending online IBM.Application:eWAS_tws1-rs:tws1
$ lssam |grep eWAS_tws1
Online IBM.ResourceGroup:eWAS_tws1-rg Nominal=Online
'- Online IBM.Application:eWAS_tws1-rs:tws1