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

13 - 39
Script Add
Command SCRIPT ADD
Description Specifies the scripts that should be run at a particular point-in-time during a process
Syntax
SCRIPT ADD <con_id> [source] <ON target> <type>=<path> [ARGS=arguments]
[DELAY|NODELAY] [INTERACT|NOINTERACT]
Options con_id—Connection ID assigned to the source/target connection
source—Name of the source
target—Name of the target, an IP address on the target, or a virtual IP address
type—Any of the following script types
MIRRORSTART—Process the script before the mirroring process starts
MIRRORSTOP—Process the script when the mirroring process stops
MIRRORCOMPLETE—Process the script when the mirroring process is complete
path—Specify the full path and file name (including the file extension) to the script on the target.
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.
DELAY—Delay all Storage Mirroring processing until the script finishes processing
NODELAY—Allow Storage Mirroring processing to continue while the script is processing
INTERACT—Display script processing on the screen
NOINTERACT—Do not display script processing. Execute the script silently in the background
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.
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.