snmp-server enable traps envmon
To enable SNMP environmental traps, use the snmp-server enable traps envmon command in global
configuration mode. Use the no form of this command to return to the default setting.
snmp-server enable traps envmon [fan][shutdown][status] [supply][temperature]
no snmp-server enable traps envmon [fan][shutdown][status] [supply][temperature]
Syntax Description
(Optional) Enables fan traps.fan
(Optional) Enables environmental monitor shutdown traps.shutdown
(Optional) Enables SNMP environmental status-change traps.status
(Optional) Enables environmental monitor power-supply traps.supply
(Optional) Enables environmental monitor temperature traps.temperature
Command Default
The sending of environmental 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 generate fan traps:
Device(config)# snmp-server enable traps envmon fan
Command Reference, Cisco IOS XE Everest 16.5.1a (Catalyst 3650 Switches)
540
snmp-server enable traps envmon