The snmp-agent notification-log enable command enables the notification logging function.
The undo snmp-agent notification-log enable command disables the notification logging function.
By default, the notification logging function is disabled.
Usage Scenario
When the route from a network element to the NMS is unreachable because of a link failure between the network element and NMS, the network element does not send any SNMP notifications to the NMS. If the notification logging function is enabled, the network element records trap logs. When the link between the network element and NMS recovers, the NMS can obtain the trap logs recorded when the link was faulty.
After the notification logging function is enabled, the system records informs in trap logs in either of the following conditions:
No ACK message is received after an inform in the notification queue is retransmitted the specified number of times.
Earliest informs are discarded because the number of notifications in the notification queue exceeds the limit. The system records the discarded informs in trap logs.
Precautions
Only informs are recorded in trap logs, and traps are not recorded.