HP XP P9000 Continuous Access Synchronous for Mainframe Systems User Guide
B Continuous Access Synchronous Z scripting
This appendix describes how to use script files to perform Cnt Ac-S Z operations.
Scripting overview
The Remote Web Console scripting function for Cnt Ac-S Z allows you to define multiple operations
in a text file. You then run the script file which runs the operations, without having to issue the
commands separately. With a script, you can set up and run a large number of commands within
a short period of time.
You can create a new script file or one created for earlier storage systems. You can also download
a script file template for editing.
The script file will contain your list of macros (commands) describing the pair operations you want
to run. You will define or edit the script macros in the file, import the file into Remote Web Console,
and then run it and its specified pair operations. Remote Web Console runs the script as a batch
file.
Cautions and warnings
You should be aware of the following:
• You are responsible for testing the scripting function before running the scripts; otherwise,
data loss can occur. Before you test, back up the data and vary the volumes offline. If the
volumes must remain online, back up the data and confirm that the target pair defined in the
script is correct. The results of a script can be confirmed by checking the latest pair status
update (Last Update Time field on Cnt Ac-S Z Detailed Information dialog box).
• Do not perform other Remote Web Console operations while the scripting function is running.
Wait until the script operation is complete, or make sure it is aborted.
• You should be familiar with batch files. Instructions for writing or editing batch files is not
covered here. The macro commands and parameters listed in this topic are the only commands
recognized by the scripting function.
Macro commands
You can download a copy of the script using the Remote Web Console control panel. See the HP
XP P9000 Remote Web Console User Guide for more information.
The following table lists all supported Cnt Ac-S Z pair macro commands. Those operations not
listed are not supported.
The scripting command names did not change when the product name changed from HRC to Cnt
Ac-S Z. Existing 7700E HRC scripting files can be used for pair operations.
DescriptionScripting macro
Registers a pair or pairs. (StartHrcPair is used to start the initial copy operation.)CreateHrcPair
Releases a pair or pairs.DeleteHrcPair
Suspends a pair or pairs.SuspendHrcPair
Resynchronizes a pair or pairs. This command must be used with StartHrcPair.ResumeHrcPair
Changes the pair options for a pair or pairs.ChangeHrcOption
Starts remote copy operations for the new pairs and/or resynchronized pairs specified in the
preceding scripting commands.
StartHrcPair
Displays the status of a pair or pairs.GetHrcStatus
Searches paired devices.SelectHrcDevice
126 Continuous Access Synchronous Z scripting