Usage Scenario
If notification logs in the log buffer do not need to be aged, set the aging time of these notification logs to 0.
If the number of notification logs saved to the log buffer within the aging time exceeds the upper limit, new notification logs can still be saved but overwrites the earlier logs in the log buffer.
To enable the alarm logging function, run the snmp-agent notification-log enable command.
An alarm can be propagated using either of the following types of messages:
- Inform message
- Trap message
Only the alarms propagated using Inform messages are to be logged. The alarms propagated using trap messages are not logged.
The alarms propagated using Inform messages are logged only when the following conditions are met:
- No Inform ACK message is returned when the maximum number of attempts to resend the Inform message in the alarm queue reaches the configured threshold.
- An Inform message is discarded as the number of logged Inform messages reaches the maximum that the alarm queue supports.
Configuration Impact
If the size of the log buffer is excessively large, more network resources are consumed. In this case, reduce the size of the log buffer.
Only Inform logs are saved to the log buffer, and trap logs are not saved to the log buffer.