HP StorageWorks Storage Mirroring Scripting Guide (T2558-96327, April 2009)

13 - 6
8. If you specified to failover or failback the hostname in the monitor option command. You will
need to specify a user and the associated password that has update privileges within Active
Directory using the
monitor account add command. This allows SPNs to be created and
deleted during failover and failback.
9. Specify any scripts by using the monitor script add command.
Command MONITOR ACCOUNT ADD
Description Identifies a user account with update permissions within Active Directory
Syntax
MONITOR ACCOUNT ADD <username> <password> [monitor]
Options
username—Name of the user in the format domain\user or
user@domain
password—Password associated with the user name
monitor—Name of the source machine designated as the monitor
Examples
monitor account add administrator ***** alpha
Notes
The password cannot be a Storage Mirroring keyword. These are any
DTCL commands (source, target, and so on) or any DTCL shortcut
commands (env, mon, rep, and so on).
The password cannot be blank.
Options 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"