HP P2000 G3 MSA System CLI Reference Guide
21
XML API optimization
The following are two ways to optimize XML API performance:
•
Use embedded objects. This allows one object to contain not only properties but also other objects. In
general, parsing a structure such as this is easier as the association between objects is simpler. This is
an alternative to using
COMP
elements.
•
Use brief mode. In brief mode, which is disabled by default, returns a subset of attributes of object
properties. The name and type attributes are always returned. Other properties can be obtained by
using the
meta
command with the basetype of the object. This optimization reduces the number of
bytes transmitted for each request and allows caching of CLI metadata. Brief mode can be enabled or
disabled by using the
set cli-parameters
command.
In the following example, which uses brief mode, embedded objects contain media-specific detail for
ports:
# show ports
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RESPONSE VERSION="L100">
<OBJECT basetype="port" name="name" oid="1" format="rows">
<PROPERTY name="durable-id">hostport_A1</PROPERTY>
<PROPERTY name="controller" key="true">A</PROPERTY>
<PROPERTY name="controller-numeric" key="true">1</PROPERTY>
<PROPERTY name="port" key="true">A1</PROPERTY>
<PROPERTY name="port-type" type="string">FC</PROPERTY>
<PROPERTY name="port-type-numeric" type="string">6</PROPERTY>
<PROPERTY name="media">FC(-)</PROPERTY>
<PROPERTY name="target-id">
target-ID
</PROPERTY>
<PROPERTY name="status">Disconnected</PROPERTY>
<PROPERTY name="status-numeric">6</PROPERTY>
<PROPERTY name="actual-speed"></PROPERTY>
<PROPERTY name="actual-speed-numeric">255</PROPERTY>
<PROPERTY name="configured-speed">Auto</PROPERTY>
<PROPERTY name="configured-speed-numeric">3</PROPERTY>
<PROPERTY name="health">N/A</PROPERTY>
<PROPERTY name="health-numeric">4</PROPERTY>
<PROPERTY name="health-reason">There is no host connection to this host
port.</PROPERTY>
<PROPERTY name="health-recommendation">- No action is required.</PROPERTY>
<OBJECT basetype="fc-port" name="port-details" oid="2" format="rows">
<PROPERTY name="configured-topology">Loop</PROPERTY>
<PROPERTY name="primary-loop-id">0</PROPERTY>
</OBJECT>
</OBJECT>
<OBJECT basetype="port" name="name" oid="3" format="rows">
<PROPERTY name="durable-id">hostport_A2</PROPERTY>
...
</OBJECT>
<OBJECT basetype="status" name="status" oid="5">
<PROPERTY name="response-type">Success</PROPERTY>
<PROPERTY name="response-type-numeric">0</PROPERTY>
<PROPERTY name="response">Command completed successfully.</PROPERTY>
<PROPERTY name="return-code">0</PROPERTY>
<PROPERTY name="component-id"></PROPERTY>
<PROPERTY name="time-stamp">2012-01-27 12:11:10</PROPERTY>
<PROPERTY name="time-stamp-numeric">1281442270</PROPERTY>
</OBJECT>
</RESPONSE>
Содержание P2000 G3
Страница 1: ...HP P2000 G3 MSA System CLI Reference Guide Part number 500912 009 First edition February 2014 ...
Страница 14: ...14 About this guide ...
Страница 30: ...30 Categorical list of commands ...
Страница 96: ...96 Alphabetical list of commands exit Description Log off and exit the CLI session Syntax exit ...
Страница 159: ...HP P2000 G3 MSA System CLI Reference Guide 159 See also set host parameters show iscsi parameters ...
Страница 199: ...HP P2000 G3 MSA System CLI Reference Guide 199 See also set cache parameters show volumes ...
Страница 217: ...HP P2000 G3 MSA System CLI Reference Guide 217 Basetypes drives enclosure list status See also show vdisks ...
Страница 223: ...HP P2000 G3 MSA System CLI Reference Guide 223 Basetypes email parameters status See also set email parameters ...
Страница 230: ...230 Alphabetical list of commands See also clear events set snmp parameters show snmp parameters ...
Страница 288: ...288 Alphabetical list of commands Basetypes snapshots status See also show master volumes show snap pools ...
Страница 292: ...292 Alphabetical list of commands Basetypes system unhealthy component status See also set system ...
Страница 294: ...294 Alphabetical list of commands See also set volume set vdisk ...
Страница 338: ...338 Alphabetical list of commands Basetypes remote links See also show remote systems verify remote link ...
Страница 340: ...340 Alphabetical list of commands Basetypes remote links See also show remote systems verify links ...
Страница 424: ...424 XML API basetype properties PROPERTY name utility priority numeric type string 0 PROPERTY OBJECT ...
Страница 469: ...HP P2000 G3 MSA System CLI Reference Guide 469 PROPERTY name status type string OK PROPERTY OBJECT ...
Страница 494: ...494 XML API basetype properties PROPERTY name sample time numeric type string 1329397200 PROPERTY OBJECT ...
Страница 498: ...498 XML API basetype properties PROPERTY name mrc version type uint8 0 PROPERTY OBJECT ...
Страница 510: ...510 XML API basetype properties PROPERTY name reserve type numeric type string 0 PROPERTY OBJECT ...
Страница 524: ...524 Glossary ...
Страница 532: ...532 Index ...