snmp-server enable traps — global
snmp-server enable traps [
option] no snmp-server enable traps [
SNMP agent; trap behavior
Disabled; with no arguments, this command enables all traps
This command enables SNMP traps. Traps are unsolicited messages from the router to the management stations. Usually, traps notify the management station of an event or error. At least one trap recipient must be defined (using the
snmp-server host command) before any traps are generated.
Optional. This command allows you to enable or disable a specific trap type. Valid trap types are shown in Table 17-22.
Any options that are valid for the trap type. Most trap types do not have any options; the exceptions are
Table 17-22, the list of trap types, is a puzzle. Cisco’s documentation shows similar but different lists of trap types for this command and
snmp-server host. Since the commands are used together, there’s no reason why the two trap lists should be different. It would be easy to write this off as mistaken documentation, but a check on some routers reveals that the built-in help for these commands also shows different trap lists. Table 17-22 lists all the traps, regardless of which command accepts them as arguments; it indicates whether a trap is documented for
snmp-server enable traps,
snmp-server host, or both. Use it in good health. Fortunately, the traps for which there is disagreement correspond ...