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

The execution result is output in UTF-8 encoding. If you want to use the execution result in application
software, such as spreadsheet software, you need to convert the encoding to the one supported by
that application software.
Item names and values output in the execution result are enclosed in double quotation marks (").
Two successive commas in the execution result indicate that the corresponding item between the two
commas has no value.
In the first line of the execution result, item names and a linefeed code ([CRLF]) are output. An item
name is output even if the item has no value.
In the second line and below of the execution result, values and a linefeed code are output. A linefeed
is output also in the last line of data. An EOF (end of file) code follows after the last line of data.
NOTE:
Items output in the execution result differ depending on the parameters specified by the Device
Manager CLI command.
When you use different Device Manager CLI versions, the order and number of items output as
the execution result might be different even if the specified parameters are the same.
Outputting execution results in XML format
To output the execution results of the GetStorageArray command in XML format, specify xml for
the -f or --format option. Specify xml by using lowercase letters.
The execution results are output to the standard output. To output the execution results to an XML file,
add the -o or --output option. Alternatively, specify that the results be redirected to a file.
The -f or --format option can be specified only when the GetStorageArray command is used.
The following describes the format of an XML file to which the execution results are output.
<?xml version="1.0" encoding="UTF-8"?>[CRLF]
<!DOCTYPE DvMCLIResult SYSTEM "CLI-DTD-URL.dtd">[CRLF]
<DvMCLIResult version="version"><CommandResult command="GetStorageArray">
<StorageArray attr-name="attr-value" attr-name="attr-value" ... >
</StorageArray> ... </CommandResult></DvMCLIResult>
Legend:
attr-name: Entry name
attr-value: Value
[CRLF]: Line feed code
When an execution result is output in XML format, an XML declaration, a DOCTYPE declaration, and
XML elements are output.
First line:
An XML declaration and a line feed code are output.
Device Manager CLI uses UTF-8 encoding to output the execution result according to the XML 1.0
specifications recommended by W3C.
Second line:
A DOCTYPE declaration and a line feed code are output.
CLI Reference Guide 411