HP XP P9000 Continuous Access Synchronous for Mainframe Systems User Guide

Error level list (string): To maintain interchangeability with the script made with the model
before XP24000/XP20000 Disk Array, this parameter has been left. Do not use this parameter
with XP P9500.
Time-Saving Mode flag: “Yes” = The Use Time-Saving Mode option is enabled; “No” = The
Use Time-Saving Mode option is disabled; default = “Yes. This parameter is a non-list type
and only one value can be specified.
The following example shows the pair macro commands needed to change the pair options
for the pair with LDEV ID 0x4a as follows: set fence level option to Never, set CFW option to
P-VOL only.
Start $Script="HRC",$Svr="64002"
// $Dev
SetList $D =_ilDevA, $S = {0x000100,0x000101,0x000102,0x000103,0x000104}
AddList $D =_ilDevA, $S = {0x000117,0x000118,0x000119}
// $OptCfwSetList $D = _ilWorkA, $S = {1, 1, 0}
// $Fence
SetList $D = _slWorkA, $S = {"D", "S", "N", "Data", "Status"}
ChangeHrcOption $Dev = _ilDevA, $Fence = _slWorkA,
$OptCfw = _ilWorkA
// $Dev
SetList $D =_ilDevB,
$S = {0x000A00,0x000A01,0x000A02,0x000A03,0x000A04}
ChangeHrcOption $Dev = _ilDevB
End
Starting a pair
The StartHrcPair command allows you to start the remote copy process for all new and
resynchronized pairs (CreateHrcPair and ResumeHrcPair commands).
The StartHrcPair command does not have any arguments or parameters. After you have
created and/or resynchronized all desired pairs, add the StartHrcPair command to the script
to begin remote copy activity for all preceding new and resynchronized pairs.
The following example shows the StartHrcPair command as it appears within a script file.
:
:
StartHrcPair
Getting pair status
The GetHrcStatus macro command allows you to obtain the status of a specific pair. The
GetHrcStatus parameter includes:
GetHrcStatus∆$Dev= Device
The Detail for the argument is:
Device (numeric constant, non-list-type and numeric-type work variable):
VOL = L x 0x10000, C x 0x100 + VV, where L=LDKC#, C=CU#, VV=vol# within the CU.
The GetHrcStatus command obtains the status of the pair from the XP P9500 and displays the
status as a reserved variable “_HrcStatus” (see “Reserved result variables” (page 144)).
The following example shows an example of the GetHrcStatus command for the pair with LDEV
ID 0x00004a.
When you specify device, 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.
GetHrcStatus $Dev=0x00004a
_sMsgB=_HrcStatus_Fence
_sMsgC=_HrcStatus_Sync
_sMsgD=_HrcStatus_Sn
_iNumB=_HrcStatus_Ssid
_iNumC=_HrcStatus_DeviceR
138 Continuous Access Synchronous Z scripting