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

C XML-API request file
This appendix describes an XML-API request file, which is required when you specify the -i (or
--input) option for a command.
About XML-API request files
An XML-API request file contains one or more XML-API requests to the Device Manager server. The
file must contain a valid XML document in the correct form for a Device Manager request.
To read in requests to the Device Manager server from the XML-API request file, specify the -i (or
--input) option. If you specify the -i (or --input) option, the commands and parameters specified
on the command line or in the properties file are ignored.
CAUTION:
To use the XML-API CLI feature, you need thorough knowledge of XML-API, and need to take great
care in formulating commands.
Creating an XML-API request file by using the message trace
file
You can create an XML-API request file by using a message trace file.
The following an example of creating an XML-API request file that uses the AddLun command. By
using the message trace file that was generated when a single LUN was created, this procedure
makes an XML-API request file that uses a single request to create multiple LUNs.
To create the XML-API request file:
1. Specify the -t (or --messagetrace) option and execute the command from the command line.
hdvmcli -t AddLun
serialnum=15045 model=XP1024/XP128
port=0 domain=0 scsi=15 lun=100 devnum=1
CLI Reference Guide 505