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

14 - 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;