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 ...
Get Cisco IOS in a Nutshell, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.