HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.1 CLI Reference Guide (TB581-96051, May 2011)

storage system allocation. For details about the AddArrayReservation command, see
AddArrayReservation on page 41.
If an error has occurred and the processing has stopped, you should check which parts of the batch
file have been executed. The checking process is easier if you create the batch file as follows:
Write commands that have the same port or portname on consecutive lines.
Write commands so that the devnum follows the order of the serial number.
Creating batch files
A batch file needs to be created to execute the batch functionality. This section explains the following
items:
Batch file format and input rules
Input rules for each command line
Conditions for parameters to process commands together
Examples of batch file creation
Batch file format and input rules
The batch file format is as follows:
beginbatch
hdvmcli command parameter
hdvmcli command parameter
.
.
endbatch
The input rules for batch files are as follows:
Only ASCII encoded characters can be used in batch files.
A batch file must have beginbatch on the first line and endbatch on the last line.
Begin a new line after the character string endbatch.
If you do not do this, an error occurs.
Only one type of command can be set in a single batch file.
Only one type of storage system can be set in a single batch file.
Up to 1,500 commands can be specified in a single batch file.
Some parameter values are case sensitive.
Input rules for each command line
The commands to be executed together are specified between beginbatch and endbatch. The
input rules for each command line are as follows:
Only the command to be executed and the command parameters can be specified on each com-
mand line. URLs, options, or help cannot be specified.
Parameters common to each command line cannot be specified in a properties file.
The same parameter cannot be specified multiple times on the same command line.
Parameters that cannot be used on the same command line cannot be specified.
For example, when executing the DeleteLun command, the port parameter and the portname
parameter cannot be specified at the same time on the same command line.
CLI Reference Guide 335