The agent for DB2 supports the Action operation, which enables you to perform predefined actions or custom actions on a resource. To perform an action on a resource, type the following command:
# hares -action
res
token
[-actionargs
arg1 ...] [-sys
The agent supports these predefined actions:
Retrieves the DB2 instance name of the configured Db2udb resource. |
|
Retrieves the list of processes monitored by the agent for the Db2udb resource. |
# hares -action
db2udb1 VRTS_GetInstanceName -sys
systemName
VCS NOTICE V-16-13323 Resource (db2udb0): action (VRTS_GetInstanceName) completed successfully. Output is:
# hares -action
db2udb0 VRTS_GetRunningServices -sys
systemName
VCS NOTICE V-16-13323 Resource (db2udb0): action (VRTS_GetRunningServices)
completed successfully. Output is:
You can also add custom actions for the agent. Refer to the Veritas Cluster Server Agent Developer's Guide for information on defining custom action tokens.