Example – HP Intelligent Management Center Licenses User Manual

Page 163

Advertising
background image

Message body

<list>
<snmpParamTemplate>
<id>1</id>
<name>default</name>
<paraType>SNMPv1</paraType>
<roCommunity>public</roCommunity>
<rwCommunity>private</rwCommunity>
<timeout>4</timeout>
<retries>3</retries>
<contextName/>
<securityName/>
<securityMode>1</securityMode>
<authScheme>0</authScheme>
<authPassword/>
<privScheme>0</privScheme>
<privPassword/>
<snmpPort>161</snmpPort>
<link href="http://imc_host:port/imcrs/plat/res/snmp/1" op="GET" rel="self"/>
</snmpParamTemplate>
...
<link rel="next" href="http://imc_host:port/imcrs/plat/res/snmp?start=10&size=10"/>
</list>

For the description on each field of the returned value, see

Query SNMP Template Information

.”

Example

Query SNMP template information list.

Request

GET http://imc_host:8080/imcrs/plat/res/snmp
accept: application/xml
...

Response

HTTP/1.1 200 OK
Content-Type: application/xml
...
<list>
<snmpParamTemplate>
<id>1</id>
<name>default</name>
<paraType>SNMPv1</paraType>
<roCommunity>public</roCommunity>
<rwCommunity>private</rwCommunity>
<timeout>4</timeout>
<retries>3</retries>
<contextName/>
<securityName/>
<securityMode>1</securityMode>
<authScheme>0</authScheme>
<authPassword/>
<privScheme>0</privScheme>
<privPassword/>
<snmpPort>161</snmpPort>
<link href="http://localhost:8080/imcrs/plat/res/snmp/1" op="GET" rel="self"/>
</snmpParamTemplate>
...
</list>

Query SNMP Template Information List

163

Advertising