snmp trap link-status disable

Disables SNMP traps for the interface link status change.

Syntax

snmp trap link-status disable { ethernetslot/port | loopback port | port-channel channel | ve vlan-id }
no snmp trap link-status disable { ethernetslot/port | loopback port | port-channel channel | ve vlan-id }

By default, the SNMP trap for link-status is enabled for all interfaces.

Parameters

ethernet slot/port
Specifies a physical Ethernet interface and a valid slot and port number.
loopback port
Specifies a loopback interface and a valid port number.
port-channel channel
Specifies a port-channel.
ve vlan-id
Specifies a virtual interface.

Modes

Interface sub-mode

Usage Guidelines

Use the no form of this command to enable SNMP traps for the interface link-status change. Use the show running-config interface command to view the SNMP traps link-status. SNMP traps are disabled for "Ethernet 0/1" and Ethernet 0/2" and by default enabled for "Ethernet 0/3" and "Ethernet 0/4". SNMP traps are disabled for Port-channel 21 and 22 and by default enabled for Port-channel 23. SNMP traps are disabled for Loopback 11 and 12 and by default enabled for loopback 13. SNMP traps are disabled for VE 1 and 2 and by default enabled for VE 3.

Examples

The following example displays the SNMP traps are disabled for "Ethernet 0/1" and Ethernet 0/2". Enabled by default for "Ethernet 0/3" and "Ethernet 0/4" :

device# show running-config interface Ethernet 
interface Ethernet 0/1 
snmp trap link-status disable 
shutdown 
! 

interface Ethernet 0/2 
snmp trap link-status disable 
shutdown 
! 

interface Ethernet 0/3 
shutdown 
! 

interface Ethernet 0/4 
shutdown 
! 

The following example displays the SNMP traps are disabled for Port-channel 21 and 22. Enabled by default for Port-channel 23:

device# show running-config interface Port-channel 

interface Port-channel 21 
snmp trap link-status disable 
shutdown 
! 

interface Port-channel 22 
snmp trap link-status disable 
shutdown 
! 

interface Port-channel 23 
shutdown 
! 

The following example displays the SNMP traps are disabled for Loopback 11 and 12. Enabled by default for loopback 13:

device# show running-config interface Loopback 
interface Loopback 11 
snmp trap link-status disable 
shutdown 
! 

interface Loopback 12 
snmp trap link-status disable 
shutdown 
! 

interface Loopback 13 
shutdown 
! 

The following example displays the SNMP traps are disabled for VE 1 and 2. Enabled by default for VE 3:

device# show running-config interface ve 
interface Ve 1 
snmp trap link-status disable 
shutdown 
! 

interface Ve 2 
snmp trap link-status disable 
shutdown 
! 

interface Ve 3 
shutdown 
!