HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96022, November 2010)

Notes
l The password cannot be a Storage Mirroring Recover keyword.
These are any DTCL commands (source, target, and so on) or
any DTCL shortcut commands (env, mon, rep, and so on).
l The password cannot be blank.
l Options that contain non-alphanumeric characters must be
enclosed in quotation marks.
9. Specify any scripts by using the monitor script add command.
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