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

7 - 4
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—This script starts when the target receives the first
mirror operation. In the case of a difference mirror, this may be a long
time after the mirror is started because the script does not start until
the first different data is received on the target. If the data is
synchronized and a difference mirror finds nothing to mirror, the
script will not be executed. The mirror start script will not run for the
initial baseline mirror when a connection is first established.
MIRRORSTOP—This script starts when a mirror is stopped, which
may be caused by an auto-disconnect occuring while a mirror is
running, the service is shutdown while a mirror is running, or if you
stop a mirror manually.
MIRRORCOMPLETE—This script starts when a mirror is completed.
Because the mirror statistics may indicate a mirror is at 100% when
it is actually still processing (for example, if files were added after the
replication set size was calculated, if there are alternate data streams,
and so on), the script will not start until all of the mirror data has been
completely processed on the target.
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. 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.
arguments—Specify any arguments, valid for your script, that are
required to execute your script. 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.
DELAY—Delay all C:\Program Files\StorageWorks\Storage
Mirroring
processing until the script finishes processing
NODELAY—Allow C:\Program Files\StorageWorks\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.
Machine names that contain non-alphanumeric characters must be
enclosed in quotation marks.