A user-defined command can be executed.
See
For information on the setup, see Section "3.12.2 Setting user command execution function".
Running a user-specified command when activated or deactivated an IP address
Run a user-specified command when activated or deactivated a logical IP address (when using the logical IP address takeover function) or a physical IP address (when using the physical IP address takeover function) by automatically switching due to an error in monitoring a transfer route or by operating an operation command (activation, deactivation, or manual switching). Use this function to restart an application after activating or deactivating an IP address and to set the specified routing information.
Running a user-specified command when detected an error in a transfer route
Run a user-specified command when detected an error in monitoring a transfer route (such as LAN or HUB errors). Use this to notify the system administrator or an application of detecting an error.
Running a user-specified command when detected an error by standby patrol or recovery
Run a user-specified command when detected an error in monitoring a transfer route by standby patrol or recovery. Use this to notify the system administrator or an application of detecting an error or recovery. When set either of a monitoring interval ('-p' option) or the number of constant monitoring ('-o' option) of standby patrol to zero by the hanetparam command, it is not possible to use this user command execution function.
Figure 2.51 Timing of running user command when activating or deactivating IP address (Logical IP address takeover function) (Continued.) shows timing to run a user command when activated or deactivated an IP address in NIC switching mode (the logical IP address takeover function).
Figure 2.53 Timing of running user command when activating or deactivating IP address (Physical IP address takeover function) shows timing to run a user command when activated or deactivated an IP address in NIC switching mode (the physical IP address takeover function).
Figure 2.54 Timing of running user command when detected error in transfer route shows timing to run a user command when detected an error in a transfer route in NIC switching mode
Figure 2.55 Timing of running user command when detected standby patrol error or recovery shows timing to run a user command when detected a standby patrol error or recovery in NIC switching mode.
Executing a user command when an error or a recovery is detected in the virtual interface
If errors are detected in both primary interface and secondary interface and the communication cannot be continued, execute the user-specified command. Execute the user-specified command also when either one of the interfaces is recovered from the above mentioned error.
This command is used to inform that the operation cannot be continued due to an error occurred in both routes.
The following shows the timing for executing the user command when an error or a recovery is detected in the virtual interface.
The command is executed at the same timing as above if an error is detected in the secondary interface first, and then in the primary interface.
The command is executed at the same timing as above if a recovery is detected in the secondary interface first, and then in the primary interface.
Executing the user command when changing the remote hot-standby system
If a hot-standby system is changed on GS (if you receive a message from GS saying the virtual IP address has been activated.), execute the user-specified command.
This command is used to inform the system administrator or applications that an error occurred.
Executing the user command when an error is detected in remote host monitoring
If the monitoring for all physical IP addresses that the virtual IP address on GS bundles is stopped for a specified period of time (default is about 180 seconds), execute the user-specified command.
This command is used to inform the system administrator or applications that an error occurred.
Executing the user command when changing nodes on the local system
If a node is changed on the local cluster system, and the takeover virtual IP address is deactivated, execute the user-specified command.
This command is used to inform the system administrator or applications that an error occurred.
The following shows the timing for executing the user command in GS linkage mode.
Executing a user command when the takeover virtual interface is activated or deactivated
In the cluster configuration, if the takeover virtual interface that is registered as a Gls resource is activated or deactivated, execute the user-specified command.
This command is used to perform an operation in synchronization with the activation and the deactivation of each takeover virtual interface.
The following shows the timing for executing the user command when activating and deactivating the virtual interface.
Executing the user command when an error on GLS has been detected by the self-checking function
If an error has been detected by the self-checking function, execute the user command, which is used when you want to notify system administrators or applications of an error.