Specifications

lix
Cisco 1751 Router Software Configuration Guide
OL-1070-01
snmp-server enable traps
To enable the router to send SNMP traps, use the snmp-server enable traps global configuration
command. Use the no form of this command to disable SNMP traps.
snmp-server enable traps [trap-type] [trap-option]
no snmp-server enable traps [trap-type] [trap-option]
Defaults
No traps are enabled.
Some trap types cannot be controlled with this command. These traps are either always enabled or
enabled by some other means. For example, the linkUpDown messages are disabled by the no snmp
trap link-status command.
If you enter this command with no keywords, the default is to enable all trap types.
Command Mode
Global configuration.
Usage Guidelines
This command is useful for disabling traps that are generating a large amount of uninteresting or useless
noise.
If you do not enter an snmp-server enable traps command, no traps controlled by this command are
sent. To configure the router to send these SNMP traps, you must enter at least one snmp-server enable
traps command. If you enter the command with no keywords, all trap types are enabled. If you enter
the command with a keyword, only the trap type related to that keyword is enabled. To enable multiple
types of traps, you must issue a separate snmp-server enable traps command for each trap type and
option.
The snmp-server enable traps command is used in conjunction with the snmp-server host command.
Use the snmp-server host command to specify which host or hosts receive SNMP traps. In order to
send traps, you must configure at least one snmp-server host command.
For a host to receive a trap controlled by this command, both the snmp-server enable traps command
and the snmp-server host command for that host must be enabled. If the trap type is not controlled by
this command, just the appropriate snmp-server host command must be enabled.
The trap types used in this command all have an associated MIB object that allows them to be globally
enabled or disabled. Not all of the trap types available in the snmp-server host command have
notificationEnable MIB objects, so some of these cannot be controlled using the snmp-server enable
traps command.
Examples
The following example enables the router to send SNMP poor-quality-of-voice traps:
configure terminal
snmp-server enable trap voice poor-qov