DIS-200G Series Gigabit Ethernet Switch CLI Reference Guide
165
Switch(config)#
32-5
snmp-server enable traps snmp
This command is used to enable the sending of all or specific SNMP notifications. Use the
no
form of this
command to disable sending of all or specific SNMP notifications.
snmp-server enable traps snmp [authentication] [linkup] [linkdown] [coldstart] [warmstart]
no snmp-server enable traps snmp [authentication] [linkup] [linkdown] [coldstart] [warmstart]
Parameters
authentication
(Optional) Specifies to control the sending of SNMP authentication
failure notifications. An authentication Failure trap is generated
when the device receives an SNMP message that is not properly
authenticated. The authentication method depends on the version
of SNMP being used. For SNMPv1 or SNMPv2c, authentication
failure occurs if packets are formed with an incorrect community
string. For SNMPv3, authentication failure occurs if packets are
formed with an incorrect SHA/MD5 authentication key.
linkup
(Optional) Specifies to control the sending of SNMP linkup
notifications. A linkup (3) trap is generated when the device
recognizes that one of the communication links has come up.
linkdown
(Optional) Specifies to control the sending of SNMP linkDown
notifications. A linkDown (2) trap is generated when the device
recognizes a failure in one of the communication links.
coldstart
(Optional) Specifies to control the sending of SNMP coldStart
notifications.
warmstart
(Optional) Specifies to control the sending of SNMP warmStart
notifications.
Default
By default, this option is disabled.
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
This command controls the sending of SNMP standard notification traps. To enable the sending of notification
traps, the global setting must be enabled too.
Example
This example shows how to enable the switch to send all SNMP traps to the host 10.9.18.100 using the
community string defined as public.
Switch# configure terminal
Switch(config)# snmp-server enable traps
Switch(config)# snmp-server enable traps snmp