Modify snmp settings, Interface uri, Access method – HP Intelligent Management Center Licenses User Manual

Page 96: Interface uri access method

Advertising
background image

Modify SNMP Settings

Modify SNMP settings for a device based on device ID.

Interface URI

/plat/res/device/{id}/updateSnmp

Access Method

HTTP

PUT

Parameters

Path parameter

Device ID.

id

Long integer type. Required. No default value.

Message body

<device>
<snmpParameter>
<paraType>SNMPv1</paraType>
<roCommunity>public</roCommunity>
<rwCommunity>private</rwCommunity>
<timeout>10</timeout>
<retries>10</retries>
</snmpParameter>
</device>
or
<device>
<snmpTmplId>159</snmpTmplId>
</device>

Element description

device sub-elements

SNMP parameters.

snmpParameter

Element type. See the following description.

SNMP template ID.

snmpTmplId

Integer type. If both snmpTmplId and snmpParameter exist, snmpParameter is preferred, and
snmpTmplId is omitted.

snmpParameter sub-elements

Parameter type. Valid values: SNMPv1, SNMPv2c, SNMPv3 No-Priv No-Auth, SNMPv3 No-Priv
Auth-Md5, SNMPv3 No-Priv Auth-Sha, SNMPv3 Priv-Des Auth-Md5, SNMPv3 Priv-Des Auth-Sha,

paraType

SNMPv3 Priv-Aes128 Auth-Md5, SNMPv3 Priv-Aes128 Auth-Sha, SNMPv3 Priv-Aes192 Auth-Md5,
SNMPv3 Priv-Aes192 Auth-Sha, SNMPv3 Priv-Aes256 Auth-Md5, and SNMPv3 Priv-Aes256 Auth-Sha.

String type. Optional. If the element does not exist, the value is not changed. If the element exists,
the value cannot be null.

Read-only community name.

roCommunity

String type. Optional. If the element does not exist, the value is not changed. If the element exists,
the value cannot be null.

96

Network Resource Management

Advertising