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

17 - 3
Using variables to pause a target
The following script uses variables to identify the target and credentials to login to that target. These
variables are then used in the Storage Mirroring commands to pause the target.
Using variables to resume a target
The following script uses variables to identify the target and credentials to login to that target. These
variables are then used in the Storage Mirroring commands to resume the target.
$TheTarget = "beta";
$TheUser = "admin";
$ThePassword = "password";
$TheDomain = "domain.com";
login $TheTarget $TheUser $ThePassword $TheDomain;
target $TheTarget;
pausetarget $TheTarget;
$TheTarget = "beta";
$TheUser = "admin";
$ThePassword = "password";
$TheDomain = "domain.com";
login $TheTarget $TheUser $ThePassword $TheDomain;
target $TheTarget;
resumetarget $TheTarget;