HP StorageWorks Storage Mirroring Recover Scripting Guide (T5437-96022, November 2010)
l task—The path and filename of the task to run relative to the machine it
will be run on. Tasks include any valid executable or batch file. The
executables or files must exist in the specified location on the machine
where they will be executed
l args—Arguments or options which need to be supplied with the task.
Multiple arguments can be supplied in a space-separated list enclosed
in quotation marks.
l TIMEOUT timeout—Valid number followed by an optional time
indicator indicating the length of time ot pause while waiting for the task
to complete. The valid time indicators include seconds, minutes, hours,
and days. If you do not specify a time indicator, it will default to
seconds. The number zero (0) indicates there is no timeout delay and
the next operation is immediately processed. The keyword FOREVER
indicates that the next operation is not processed until the task has
completed execution. If you do not specify this option, the timeout will
default to forever.
l INTERACT—Tasks interact with the desktop and, therefore, display on
screen and run in the foreground
l NOINTERACT—Tasks do not interact with the desktop
Examples
l queuetask backup to beta onreceive=PauseAndBackup.bat
onexecute=Resume.bat
l qtask backup to beta onrec=PauseAndBackup.bat onexec=resume.bat
Notes
l The default setting for this command is nointeract.
l Any combination of one or more execution points can be used with the
same queuetask command.
l All script processing messages, including errors, can be viewed in the
Storage Mirroring Recover logs and the Windows Event Viewer.
l Onqueue will still execute as soon as the task is placed on the queue
even if transmission is stopped (manually stopped or paused, unmet
scheduled transmission criteria, etc.). Any other option will not execute
until transmission is restarted.
l If your source is in a restore required state, any task placed on the
queue will be executed immediately. Use caution when submitting
tasks while in this state so that the target does not get inadvertently
updated.