Starting a pair, Getting pair status, Selecting devices – HP StorageWorks XP Remote Web Console Software User Manual

Page 185

Advertising
background image

TrueCopy for z/OS user guide 185

Example: ChangeHrcOption Command

Starting a Pair

The StartHrcPair command starts the remote copy process for all new and resumed TC390 pairs

(CreateHrcPair and ResumeHrcPair commands). The StartHrcPair command does not have any arguments

or parameters. After you have created and/or resumed all needed TC390 pairs, add the StartHrcPair

command to the script to begin remote copy activity for all preceding new and resumed pairs. The

following provides an example of the StartHrcPair command as it is displayed within a script file.
Example: StartHrcPair Command

Getting Pair Status

The GetHrcStatus macro command obtains the status of a specific TC390 pair. The GetHrcStatus argument

is:

Device (numeric constant, non-list-type and numeric-type work variable): VOL = C x 0x100 + VV, where

C=CU#, VV=vol# within the CU.

The GetHrcStatus command obtains the status of the pair from the XP128/XP1024/XP10000/XP12000

and displays the status as a reserved variable “_HrcStatus” (see

Table 58

on page 192). The following

provides an example of the GetHrcStatus command for the pair with LDEV ID 0x4a.
Example: GetHrcStatus Command

Selecting Devices

The SelectHrcDevice command searches for TC390 pairs whose status matches the specified parameters.

The SelectHrcDevice argument is:

Start $Script="HRC",$Svr="CU-Name"

// $Dev

SetList $D =_ilDevA, $S = {0x0100,0x0101,0x0102,0x0103,0x0104}

AddList $D =_ilDevA, $S = {0x0117,0x0118,0x0119}

// $OptCfw

SetList $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 = {0x0A00,0x0A01,0x0A02,0x0A03,0x0A04}

// $OptErrLv

SetList $D = _slWorkB, $S = {"G", "V", "Volume", "Group"}

ChangeHrcOption $Dev = _ilDevB, $OptErrLv = _slWorkB

End

:

:

StartHrcPair

GetHrcStatus $Dev=0x4a

_sMsgB=_HrcStatus_Fence

_sMsgC=_HrcStatus_Sync

_sMsgD=_HrcStatus_Sn

_iNumB=_HrcStatus_Ssid

_iNumC=_HrcStatus_DeviceR

Advertising