Skip to main content

PATCH – Configure SNMP Alert Filter

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

None

Response body

FieldTypeDescription
SNMPTraps/AlertRecipient/CriticalEvents/EnabledBoolean

Config to receive critical events or not.

SNMPTraps/AlertRecipient/CriticalEvents/AcceptedEvents[1]String

Config which of those critical events to receive.

SNMPTraps/AlertRecipient/WarningEvents/EnabledBoolean

Config to receive warning events or not.

SNMPTraps/AlertRecipient/WarningEvents/AcceptedEvents[2]String

Config which of those warning events to receive.

SNMPTraps/AlertRecipient/SystemEvents/EnabledBoolean

Config to receive system events or not.

SNMPTraps/AlertRecipient/SystemEvents/AcceptedEvents[3]String

Config which of those system events to receive.

1AcceptedEvents for CriticalEvents:

All, AllOtherCriticalEvents, CriticalTemperatureThresholdExceeded, CriticalVoltageThresholdExceeded, CriticalPowerFailure, HardDiskDriveFailure, FanFailure, CPUFailure, MemoryFailure, HardwareIncompatibility, PowerRedundancyFailure.

2AcceptedEvents for WarningEvents:

All, AllOtherWarningEvents, WarningTemperatureThresholdExceeded, WarningVoltageThresholdExceeded, WarningPowerThresholdExceeded, NoncriticalFanevents, CPUinDegradedState, MemoryWarning, PowerRedundancyWarning.

3AcceptedEvents for SystemEvents:

All, AllOtherEvents, SuccessfulRemoteLogin, OperatingSystemTimeout, SystemPowerSwitch, OperatingSystemBootFailure, OperatingSystemLoaderWatchdogTimeout, PredictedFailure, EventLog75PercentFull, NetworkChange, AllAuditEvents.

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": {
"AlertRecipient": {
"WarningEvents": {
"Enabled": true,
"AcceptedEvents": [
"All"
]
},
"CriticalEvents": {
"Enabled": true,
"AcceptedEvents": [
"All"
]
},
"SystemEvents": {
"Enabled": true,
"AcceptedEvents": [
"EventLog75PercentFull",
"NetworkChange"
]
}
}
}
}