HP P9000 Business Continuity Manager Reference Guide (T5253-96058, September 2011)

Table Of Contents
say "recover to ready state for DeltaResync",
"from failure configuration."
/*
* Delete the MYUR1 copy pair when a failure occurs.
*/
address TSO "YKDELETE STEM(DEMO_INFO.MYUR1.) MSG(DEMO_MSG.)"
/*
* Check the return code of YKDELETE.
*/
if rc /= 0
then do
call printErrorMessage
end
else
nop
/*
* Confirm that the status of the MYUR1 copy pair is one where
* the copy pair can be copied.
*/
address TSO "YKEWAIT STEM(DEMO_INFO.MYUR1.) MSG(DEMO_MSG.)",
"GOTO(SIMPLEX) TIMEOUT(10)"
/*
* Check the return code of YKEWAIT.
*/
if rc /= 0
then do
call printErrorMessage
exit
end
else
nop
say "#-- MYTCHS copy pair change to DUPLEX state in TPC-R."
/*
* Confirm that the status of the MYTCHS copy pair
* has been recovered.
*/
address TSO "YKEWAIT STEM(DEMO_INFO.MYTCHS.) MSG(DEMO_MSG.)",
"GOTO(DUPLEX) TIMEOUT(30)"
/*
* Check the return code of YKEWAIT.
*/
if rc /= 0
then do
call printErrorMessage
exit
end
else
nop
/*
* Execute Make(HOLD) on the MYUR1 to change
* the status of MYUR1 to one where a DeltaResync
* can be performed.
292 CLI Commands