HP XP Command View Advanced Edition Software User Manual

Page 296

Advertising
background image




Using the Device Manager properties file



296

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

5-4-6 Using the message trace file to create XML files

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 streamed over HTTP to the server. The response is the string read from the Device Manager
server through 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.

The following example shows how to download the Device Manager CLI from the Device Manager
server to a personal computer and then use the message trace log file to create XML files.

1.

Follow the instructions in section

1-5

to download a copy of the Device Manager CLI from the

Device Manager server to a 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 turn on message trace. For example:

C:\hdvm>type hdvmcli.properties

hdvmcli.serverurl=http://193.36.40.55:2001/service

user=system

password=manager

messagetrace=true

NOTE:

You need "messagetrace=true" in order to view the XML in the message trace log file.

5.

Copy hdvmcli.CLI.bat do.bat. Rather than having to type hdvmcli followed by the
command each time, you can just enter "do" followed by the command.

Advertising