Triggers let you invoke user-defined scripts for specified events in a cluster.
VCS determines if the event is enabled and invokes the hatrigger script. The script is located at:
$VCS_HOME/bin/hatrigger
VCS also passes the name of the event trigger and associated parameters. For example, when a service group comes online on a system, VCS invokes the following command:
hatrigger -postonline system service_group.
VCS does not wait for the trigger to complete execution. VCS calls the trigger and continues normal operation.
VCS invokes event triggers on the system where the event occurred, with the following exceptions:
VCS invokes the sysoffline and nofailover event triggers on the lowest-numbered system in the RUNNING state.
VCS invokes the violation event trigger on all systems on which the service group was brought partially or fully online.