The router enabled with the SNMP agent function can generate two types of notifications: trap messages and Inform messages. Trap messages are messages alerting the NMS to a condition on the network. Inform messages are trap messages that include a request for confirmation of receipt from the NMS (Inform messages are resent until a reply is received). Inform messages are more reliable than trap messages.
The system view is displayed.
Alarm sending is enabled.
A trap function of a feature module is enabled. This means that an alarm of a specified feature can be sent to the NMS.
To disable the trap functions of all modules, run the snmp-agent trap disable command.
To restore the trap functions of all modules to the default status, run the undo snmp-agent trap enable or undo snmp-agent trap disable command.
To disable one trap function of a module, run the undo snmp-agent trap enable feature-name command.
The timeout period for waiting for inform Ack messages, number of times to resend Inform messages, and the maximum pieces of pending Inform messages (Inform messages need to be acknowledged) are set.
If the network is unstable, you need to increase the timeout period. At the same time, you need to increase the number of times to resend Inform messages and the maximum count of pending Inform messages.
The timeout period for waiting for inform Ack messages and the number of times to resend Inform messages are set.
The alarm logging function is enabled.
If the link between a managed device and the NMS is faulty, the managed device stops sending Inform messages to the NMS but continues recording alarm logs. After the link recovers, the NMS obtains alarm logs generated during the fault period from the managed device.
The alarm logging function logs only Inform messages.
The aging time of alarm logs and maximum number of inform logs that can be stored in the log buffer are set.
If the aging time expires, inform logs are automatically deleted.
Newer inform logs replace the oldest ones.