preonline event trigger

Description

Indicates that when the HAD should call a user-defined script before bringing a service group online in response to the hagrp -online command or a fault.  

If the trigger does not exist, VCS continues to bring the group online. If the script returns 0 without an exit code, VCS runs the hagrp -online -nopre command, with the -checkpartial option if appropriate.  

If you do want to bring the group online, define the trigger to take no action. This event trigger is configurable. 

Usage

- preonline  triggertype system service_group whyonlining [system_where_group_faulted] 

  • triggertype—represents whether trigger is custom (triggertype=0) or internal (triggertype=1).

    For this trigger, triggertype=0.

  • system—represents the name of the system.
  • service_group—represents the name of the service group on which the hagrp command was issued or the fault occurred.
  • whyonlining—represents two values:

    fault: Indicates that the group was brought online in response to a group failover or switch.

    manual: Indicates that group was brought online manually on the system that is represented by the variable system.

  • system_where_group_faulted—represents the name of the system on which the group has faulted or switched. This variable is optional and set when the engine invokes the trigger during a failover or switch.

To enable the trigger

Set the PreOnline attribute in the service group definition to 1.  

You can set a local (per-system) value for the attribute to control behavior on each node in the cluster.  

To disable the trigger

Set the PreOnline attribute in the service group definition to 0. 

You can set a local (per-system) value for the attribute to control behavior on each node in the cluster.