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

7 - 5
Configuring customized mirror scripts
1. To determine any current mirroring scripts, use the account list command.
2. To add a mirroring script, use the script add command.
Command SCRIPT LIST
Description Displays a list of mirroring scripts
Syntax
SCRIPT LIST <conid> [source] [ON target]
Options conid—Connection ID assigned to the source/target connection
source—Name of the source machine
target—Name of the target, an IP address on the target, or a virtual IP address
Examples
script list 1 alpha on beta
Notes Machine names that contain non-alphanumeric characters must be enclosed in qutoation marks.
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