HP StorageWorks Storage Mirroring scripting guide (T2558-96074, February 2008)

7 - 6
3. To specify the account to use when running the mirror scripts, use the script account command.
4. If you want to test your mirror script, use the script test command.
Notes
The default settings for this command are nodelay and nointeract.
The file name you specify for your script should be the primary executable of the command being
run. If you are using a command shell to execute a script, put the command shell execturable as
the script file name and pass another script name in as an argument.
Multiple arguments need to be enclosed in quotation marks and separated by a space. Also, if an
argument contains non-alphanumeric characters, you must enclose it in quotation marks.
Arguments cannot contain nested quotation marks. Therefore, if you are passing more than one
argument to your script, none of the arguments can require quotation marks. To work around
this limitation, you can use 8.3 file naming.
Machine names that contain non-alphanumeric characters must be enclosed in quotation marks.
If you are using the mirrorstart script type, the script will not run for the initial baseline mirror
when a connection is first established.
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 keyword. These are any Storage Mirroring DTCL
command (source, target, and so on.) or any Storage Mirroring DTCL shortcut command (env,
mon, rep, and so on).
Options that contain non-alphanumeric characters must be enclosed in quotation marks.
Command SCRIPT TEST
Description Tests a mirroring script
Syntax
SCRIPT TEST <machine> <path> [arguments] [INTERACT|NOINTERACT]
Options machine—Name of the machine where you want to execute the script as a test
path—Specify the full path and file name (including the file extension) to the mirroring script. Do
not include arguments with the path, only the path and file name. Enclose the path in quotation
marks.
arguments—Specify any arguments, valid for your script, that are required to execute your script.
INTERACT—Display script processing on the screen
NOINTERACT—Do not display script processing. Execute the script silently in the background
Examples
script test beta "C:\Program Files\StorageWorks\Storage
Mirroring\Scripts\MirrorStartScript. bat" "arg1 arg2" interact