Release pairs – HP StorageWorks XP Remote Web Console Software User Manual

Page 232

Advertising
background image

Example 12 CreateHrcPair Command

Start $Script="HRC",$Svr="64002"

// $Dev
SetList $D =_ilDevA, $S = {0x000100,0x000101,0x000102,0x000103,0x000104,0x000105,0x000106,0x000107}
AddList $D =_ilDevA, $S = {0x000108,0x000109,0x00010A,0x00010B,0x00010C,0x00010D,0x00010E,0x00010F}
// $Rdev
SetList $D =_ilDevB, $S = {0x001F00,0x001F01,0x001F02,0x001F03,0x001F04,0x001F05,0x001F06,0x001F07}
AddList $D =_ilDevB, $S = {0x001F08,0x001F09,0x001F0A,0x001F0B,0x001F0C,0x001F0D,0x001F0E,0x001F0F}
// $Priority
SetList $D =_ilWorkA, $S = {1,2,3,4,16.32}
// $Fence
SetList $D =_slWorkB, $S = {"D","S","S","N"}

CreateHrcPair $Dev = _ilDevA, $RcuSn = "12345", $RcuSsid = 4, $Rdev = _ilDevB, $Priority =
_ilWorkA, $Fence = _slWorkB, $TimeStamp = "Enable" StartHrcPair

// $Dev
SetList $D =_ilDevA, $S = {0x000B80,0x000B81,0x000B82}
AddList $D =_ilDevA, $S = {0x000C2A,0x000C2B,0x000C2C}
// $Rdev
SetList $D =_ilDevB, $S = {0x001045,0x001047,0x00105E}
AddList $D =_ilDevB, $S = {0x001130,0x001139,0x00113D}
// $RcuSn
SetList $D =_slWorkD, $S = {"32072","32072","32072","28439","28439","28439"}
// $RcuSsid
SetList $D =_ilWorkC, $S = {33,33,33,0xA74C,0xA74C,0xA74C}
// $CTG
SetList $D =_ilWorkB, $S = {0x7F,0x7F,0x7F,10,10,10}

CreateHrcPair $Dev = _ilDevA, $RcuSn = _slWorkD, $RcuSsid = _ilWorkC, $Rdev = _ilDevB, $Sync = "S2",
$CTG = _ilWorkB
StartHrcPair

End

Release Pairs

The DeleteHrcPair command allows you to release TrueCopy for Mainframe pairs. The DeleteHrcPair
parameters include:

DeleteHrcPair $Dev= Device list
[,$DelMode= Release mode list]
[,$DelRange= Release range list]
[,$TimeSave= Time-Saving Mode flag]

The Details for the arguments are:

Device list (numeric): L x 0x10000 + C x 0x100 + VV, where L=LDKC#, C=CU#, VV=vol#
within the CU.
When you write device list, you can omit LDKC# if the LDKC# is 0. For example, you can
write 0x0102 when LDKC# is 0, CU# is 1, and vol# is 2.

Release mode list (numeric): 0 (0x00) = normal, 1 (0x01) = release by force; default = 0.
You must specify 0 (normal) when releasing two or more async pairs.

Release range list (string): “G” or “Group” = group; “V” or “Volume” = volume; “C” or “C/T”
= consistency time. For sync pairs you must omit this parameter.

When two or more volumes are specified, the default = V. To release two or more specific
async pairs, you can specify V or omit this parameter.

When one volume is specified, the default = G under these conditions:
Volume is an M-VOL and release mode = 0 (normal) (any pair status);
or Volume is an R-VOL, release mode = 0, and pair status = Suspending or Deleting.

232 TrueCopy for Mainframe Scripting

Advertising
This manual is related to the following products: