Action agent function

The agent for DB2 supports the action function, 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 system] [-rclus cluster]

The agent supports the following predefined actions:

For example:

# hares -action db2udb1 VRTS_GetInstanceName -sys systemName
VCS NOTICE V-16-13323 Resource (db2udb0): action
(VRTS_GetInstanceName) completed successfully. Output is:
db2inst1
# hares -action db2udb0 VRTS_GetRunningServices -sys systemName
VCS NOTICE V-16-13323 Resource (db2udb0): action
(VRTS_GetRunningServices) completed successfully. Output is:
PARTITION: 0
PID TTY TIME CMD
9800 ? 0:06 db2sysc