snmp-server enable traps snmp
To enable SNMP traps, use the snmp-server enable traps snmp command in global configuration mode.
Use the no form of this command to return to the default setting.
snmp-server enable traps snmp [authentication ][coldstart ][linkdown ] [linkup ][warmstart]
no snmp-server enable traps snmp [authentication ][coldstart ][linkdown ] [linkup ][warmstart]
Syntax Description
(Optional) Enables authentication traps.authentication
(Optional) Enables cold start traps.coldstart
(Optional) Enables linkdown traps.linkdown
(Optional) Enables linkup traps.linkup
(Optional) Enables warmstart traps.warmstart
Command Default
The sending of SNMP traps is disabled.
Command Modes
Global configuration
Command History
ModificationRelease
This command was introduced.Cisco IOS XE 3.3SECisco IOS XE 3.3SE
Usage Guidelines
Specify the host (NMS) that receives the traps by using the snmp-server host global configuration command.
If no trap types are specified, all trap types are sent.
Informs are not supported in SNMPv1.Note
To enable more than one type of trap, you must enter a separate snmp-server enable traps command for
each trap type.
Examples
This example shows how to enable a warmstart SNMP trap:
Device(config)# snmp-server enable traps snmp warmstart
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
551
snmp-server enable traps snmp