HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96022, November 2010)
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
l type—Any of the following script types
l PREFAILOVER—The file is a pre-failover script to be run on the target
before failover
l POSTFAILOVER—The file is a post-failover script to be run on the
target after failover
l PREFAILBACK—The file is a pre-failback script to be run on the target
before failback
l POSTFAILBACK—The file is a post-failback script to be run on the
target after failback
l SRCPOSTFAILBACK—The file is a post-failback script to be run on
the source after failback
l script_name—Full path and name of the script file
l arguments—Comma-separated list of valid arguments required to
execute the script
l monitor—Name of the source machine designated as the monitor
Examples
l monitor script add prefailback "C:\Program Files\StorageWorks\Storage
Mirroring\scripts\preback.bat"
l mon script add prefailback "C:\Program Files\StorageWorks\Storage
Mirroring\scripts\preback.bat"