S e n d c o m m e n t s t o n e x u s 3 k - d o c f e e d b a c k @ c i s c o . c o m
-SM-318
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
snmp trap link-status
snmp trap link-status
To enable Simple Network Management Protocol (SNMP) link trap generation on an interface, use the
snmp trap link-status
command. To disable SNMP link traps, use the
no
form of this command.
snmp trap link-status
no snmp trap link-status
Syntax Description
This command has no arguments or keywords.
Command Default
Enabled
Command Modes
Interface configuration mode
Command History
Usage Guidelines
By default, SNMP link traps are sent when a Layer 2 interface goes up or down. You can disable SNMP
link trap notifications on an individual interface. You can use these limit notifications on a flapping
interface (an interface that transitions between up and down repeatedly).
You can use this command on the following interfaces:
•
Layer 2 interface
•
Layer 3 interface
Note
Use the
no switchport
command to configure an interface as a Layer 3 interface.
Examples
This example shows how to disable SNMP link-state traps for a specific Layer 2 interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/1
switch(config-if)#
no snmp trap link-status
switch(config-if)#
This example shows how to enable SNMP link-state traps for a specific Layer 3 interface:
switch#
configure terminal
switch(config)#
interface ethernet 1/5
switch(config-if)#
no switchport
switch(config-if)#
snmp trap link-status
switch(config-if)#
This example shows how to enable SNMP link-state traps for a specific Layer 2 interface:
switch#
configure terminal
Release
Modification
5.0(3)U1(1)
This command was introduced.