HP XP7 Command View Advanced Edition CLI Reference Guide (TK981-96006, May 2014)

ModifyVLDEV
About the creation of batch files
To use the batch functionality to execute commands, you need to create a batch file that follows the
input rules and satisfies the conditions for parameters.
There are two types of input rules: Input rules for the batch files themselves, and input rules for the
command lines in batch files. In addition, there are batch-processing conditions for command
parameters that must be satisfied.
Related topics
Batch file format and input rules, page 504
Input rules for command lines in batch files, page 505
Conditions for parameters for processing a group of commands in a batch file, page 505
Examples of batch file creation, page 514
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 specified in a single batch file.
Only one type of storage system can be specified in a single batch file.
A maximum of 1,500 commands can be specified in a single batch file.
Some parameter values are case sensitive.
TIP:
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.
Batch functionality504