HP XP7 Command View Advanced Edition CLI Reference Guide (TK981-96006, May 2014)
Operations to complete in advance
• Lock the target storage system.
When the batch functionality is executed, HP recommends using the AddArrayReservation
command to lock the target storage system in advance, and prevent other users from performing
a storage system allocation.
To use the batch functionality:
• To use the batch functionality, specify the batch option (-b or --batch) and a batch file name.
Specify the URL of the Device Manager server and options other than the -i (or --input) option
on the command line or in the properties file.
The following items cannot be specified with the batch option. Doing so causes an error:
• The -i ( or --input) option
• Commands
• Command parameters
• help
For details about Help for the batch functionality, see “Types of help and how to display
help” on page 32.
Related topics
• AddArrayReservation, page 61
Examples of using the batch functionality and the results thereof
The following shows an example of using the batch functionality with the batch option specified, and
an example of the command execution results.
In this example, a batch file, batch.txt, created with the contents described in “Examples of batch
file creation” on page 514, is executed.
Command execution example:
C:\hdvm> hdvmcli http://servername:2001/service -b batch.txt
Command execution results example:
In the execution results, the start line number and the end line number, which are the numbers counted
from the top of the batch file and indicate the start and end line number of the batch process, are
displayed following the executed command name. In the following output example, ADDLUN(2-5)
indicates that four AddLun commands on lines 2 to 5 in the batch file were processed together.
NOTE:
A blank line is also counted as a line.
CLI Reference Guide 515