HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96009, November 2009)
250 of 332
Monitor Script Add
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"
● mon script add prefailback "C:\Program
Files\StorageWorks\Storage Mirroring\scripts\preback.bat"
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.
● Options that contain non-alphanumeric characters must be
enclosed in quotation marks.