Skip to main content

PATCH – Enable the SNMPv1 trap

Use the PATCH method to update properties in SNMP resource for Redfish service.

Request URL

PATCH https://<BMC_IPADDR>/redfish/v1/Managers/1/NetworkProtocol/Oem/Lenovo/SNMP

Request body

FieldTypeDescription
SNMPTraps/SNMPv1TrapEnabledBoolean

To enable SNMPv1 trap or not.

SNMPTraps/PortNumber

The port of trap receiver.

Response

The response returns same content as GET operation with updated properties.

Status code

HTTP Status CodeError Message ID
500InternalError

Example

The following example is PATCH body

{
"SNMPTraps": {
"SNMPv1TrapEnabled": true,
"Port": 162
}
}