Name
snmp-server enable traps — global
Synopsis
snmp-server enable traps [type] [option] no snmp-server enable traps [type] [option]
Configures
SNMP agent; trap behavior
Default
Disabled; with no arguments, this command enables all traps
Description
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.
-
type Optional. This command allows you to enable or disable a specific trap type. Valid trap types are shown in Table 17-22.
-
option Any options that are valid for the trap type. Most trap types do not have any options; the exceptions are
atm pvc,envmon,isdn, andrepeater.
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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access