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
| Field | Type | Description | |||
|---|---|---|---|---|---|
| SNMPTraps/SNMPv1TrapEnabled | Boolean | To enable SNMPv1 trap or not. | |||
| SNMPTraps/Port | Number | The port of trap receiver. | |||
Response
The response returns same content as GET operation with updated properties.
Status code
| HTTP Status Code | Error Message ID |
|---|---|
| 500 | InternalError |
Example
The following example is PATCH body
{
"SNMPTraps": {
"SNMPv1TrapEnabled": true,
"Port": 162
}
}
Give documentation feedback