HP StorageWorks P9000 Command View Advanced Edition Suite Software 7.1 CLI Reference Guide (TB581-96051, May 2011)

<Request>
<StorageManager>
<Add target="LUN">
<StorageArray objectID="ARRAY.XP1024/XP128.15045">
<Path portID="0" domainID="0" scsiID="15" lun="102" devNum="102" />
<Path portID="0" domainID="0" scsiID="15" lun="104" devNum="104" />
</StorageArray>
</Add>
</StorageManager>
</Request>
</HiCommandServerMessage>
When you specify the saved file that contains the preceding message, you can create multiple LUNs
using one command, as follows:
hdvmcli -t -i xmlcommand.txt
Using the message trace file
When message tracing is turned on, each execution of the application writes over the message tracing
file with the request and response of that execution, so that file never has more than one request and
one response.
The request and the response are identified by labels. Each label includes a timestamp. The request
also includes the HTTP header values set by the application. The request is the same string that is sent
via HTTP to the server. The response is the string read from the Device Manager server via HTTP,
before any parsing. Therefore, even if the application cannot make sense of the response (or does
not handle the response correctly) the message trace contains a record of the response.
Following is an example of downloading the CLI from the Device Manager server to the PC, and using
the message trace log file to create XML files:
1. Follow the instructions in Downloading the Device Manager CLI on page 18 to download a
copy of the CLI to the PC.
2. On the PC, extract the downloaded files to C:\hdvm.
3. Change the directory to hdvm:
cd hdvm
4. Edit the hdvmcli.properties file to enable message trace. In the following example,
"messagetrace=true" in order to view the XML in the message trace log file:
C:\hdvm>type hdvmcli.properties
hdvmcli.serverurl=http://193.36.40.55:2001/service
user=system
password=manager
messagetrace=true
5. Copy hdvmcli.CLI.bat do.bat so that instead of always typing hdvmcli then the command,
you only type do then the command.
CLI Reference Guide 363