HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96009, November 2009)

47 of 332
Examples
script add 1 alpha on beta mirrorstart="C:\Program
Files\StorageWorks\Storage Mirroring\Scripts\MirrorStartScript.bat"
args="arg1 arg2" delay interact
Notes
The default settings for this command are nodelay and
nointeract.
Machine names that contain non-alphanumeric characters
must be enclosed in quotation marks.
3. To specify the account to use when running the mirror scripts, use the script
account command.
Command SCRIPT ACCOUNT
Description Specifies the user account that will be used to run scripts
Syntax
SCRIPT ACCOUNT <machine> <username> <password> [
domain]
Options
machine—Name of the machine
username—Name of the user
password—Password associated with the user name
domain—If logging in using a domain account, this is the
domain name. If logging in using a local account, this is the
machine name.
Examples script account alpha administrator ********* domain
Notes
The password associated with the username cannot be blank.
The password cannot be a Storage Mirroring Recover
keyword. These are any DTCL command (source, target, and
so on.) or any DTCL shortcut command (env, mon, rep, and
so on).
Options that contain non-alphanumeric characters must be
enclosed in quotation marks.
4. If you want to test your mirror script, use the script test command.
Command SCRIPT TEST
Description Tests a mirroring script
Syntax
SCRIPT TEST <machine> <path> [arguments]