HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

13 - 24
Monitor Remove
Monitor Script Add
Examples
monitor option alpha
monitor option nomoveshares, nousesharefile, failone, nointervention
Notes The default settings are movename, moveaddress, moveshares, add, usesharefile, failall, fodelay,
fbdelay, apply, intervention, nofohostname, and nofbhostname.
The options can be used in any combination and in any order. The first option does not require a
comma, but the second and remaining options do require a comma before the option.
Monitor names that contain non-alphanumeric characters must be enclosed in quotation marks.
Command MONITOR REMOVE
Description Removes an IP address that is currently being monitored
Syntax
MONITOR REMOVE <IP_address> [monitor]
Options IP_address—The currently monitored IP address that should be removed
monitor—Name of the source machine designated as the monitor
Examples
monitor remove 205.31.2.57 alpha
monitor remove 205.31.2.68
Notes If you do not specify a monitor, the current source designated as the monitor will be used. If you
have not identified a monitor, you will receive an error message stating that a monitor has not
been selected.
Monitor names that contain non-alphanumeric characters must be enclosed in quotation marks.
Command MONITOR SCRIPT ADD
Description Specifies the scripts that should be run during the failover and failback processes
Syntax
MONITOR SCRIPT ADD <type> <script_name> [ARGS=<arguments>] [monitor]
Options type—Any of the following script types
PREFAILOVER—The file is a pre-failover script to be run on the target before failover
POSTFAILOVER—The file is a post-failover script to be run on the target after failover
PREFAILBACK—The file is a pre-failback script to be run on the target before failback
POSTFAILBACK—The file is a post-failback script to be run on the target after failback
SRCPOSTFAILBACK—The file is a post-failback script to be run on the source after failback
script_name—Full path and name of the script file
arguments—Comma-separated list of valid arguments required to execute the script
monitor—Name of the source machine designated as the monitor
Examples
monitor script add prefailback "C:\Program Files\StorageWorks\Storage
Mirroring\scripts\ preback.bat"