HP XP P9000 Command View Advanced Edition Suite Software 7.6.1-00 CLI Reference Guide

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 49
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 451, 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.
RESPONSE OF ADDLUN(2-5):
An instance of StorageArray
objectID=*****
name=XP12000@10.208.116.108
description=XP12000 (14053) at 10.208.116.108
serialNumber=14053
arrayFamily=XP12K/10K/SVS200
arrayType=XP12000
Batch functionality452