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

13 - 54
Wait on Restore
Wait on Target
Write
Command WAITONRESTORE
Description This command is used in scripts to force the script to stop executing until the connection has
finished restoring.
Syntax
WAITONRESTORE <rest_id>
Options rest_id—Restoration ID assigned to the source/target connection
Examples
waitonrestore 1
Notes This command requires using the source command immediately before the waitonrestore
command.
Command WAITONTARGET
Description This command is used in scripts to force the script to stop executing until the target queue has
been empty for the time specified.
Syntax
WAITONTARGET <target> [FROM <source>] <time>
Options target—Name of the target, an IP address on the target, or a virtual IP address
source—Name of the source
time—Nnumber of seconds that the target queue needs to be empty before the command will
return
Examples
waitontarget beta 30
Notes Machine names that contain non-alphanumeric characters must be enclosed in quotation marks.
Command WRITE
Description Displays the value of a Storage Mirroring variable
Syntax
WRITE $<variable_name>
Options variable_name—The name of the variable that you have established and want to display its value
Examples
write $thetarget
write $dbrepset