HP XP P9000 Command View Advanced Edition Suite Software 7.5.0-00 CLI Reference Guide (TB581-96348, July 2013)

For this parameter, you can specify multiple THP/Smart volume device numbers. To specify five
or more device numbers, write them separately on multiple command lines. If you specify five or
more device numbers on one command line and then perform batch processing, an error might
occur with the error message KAIC90084-E that has the response value 413 Request Entity
Too Large.
Examples of batch file creation
The following shows an example of a batch file created according to the input rules from Batch file
format and input rules on page 414 to Conditions for parameters to process commands
together on page 415.
beginbatch
hdvmcli ADDLUN model=XP12000 serialnum=14053 portname=CL1-A domain=0 devnum=816 lun=100
hdvmcli ADDLUN model=XP12000 serialnum=14053 portname=CL1-A domain=0 devnum=817 lun=101
hdvmcli ADDLUN model=XP12000 serialnum=14053 portname=CL1-B domain=0 devnum=816 lun=102
hdvmcli ADDLUN model=XP12000 serialnum=14053 portname=CL1-B domain=0 devnum=817 lun=103
endbatch
Using the batch functionality
To use the batch functionality, specify the batch option (-b or --batch) and a batch file name.
When specifying the batch option, specify the following items from the command line or in the
properties file:
Device Manager server URL
Options other than -i or --input
The following items cannot be specified with the batch option, as this will cause an error:
The -i or --input option
Commands
Command parameters
help
NOTE:
For details about displaying Help information when specifying the batch option, see Help on page 30.
The following shows an example of an execution with the batch option specified, and an example of
the command execution results.
In this example, a batch file created in Examples of batch file creation on page 420 is specified as
the file name batch.txt and is executed.
Command execution example:
C:\hdvm> hdvmcli http://servername:2001/service -b batch.txt
Batch functionality420