Configuring Up/Down Snmp Link-State Traps For Interfaces - Cisco AP776A - Nexus Converged Network Switch 5020 Configuration Manual

Cisco mds 9000 family cli configuration guide - release 4.x (ol-18084-01, february 2009)
Hide thumbs Also See for AP776A - Nexus Converged Network Switch 5020:
Table of Contents

Advertisement

SNMP Trap and Inform Notifications
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m
To configure the linkUp/linkDown notification for a switch, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 1
switch(config)# snmp-server enable traps
link
switch(config)# snmp-server enable traps
link cisco
switch(config)# snmp-server enable traps
link ietf
switch(config)# snmp-server enable traps
link ietf-extended
switch(config)# snmp-server enable traps
link ietf cisco
switch(config)# snmp-server enable traps
link ietf-extended cisco
switch(config)# no snmp-server enable traps
link

Configuring Up/Down SNMP Link-State Traps for Interfaces

By default, SNMP link-state traps are enabled for all interfaces. Whenever a link toggles its state from
Up to Down or vice versa, an SNMP trap is generated.
In some instances, you may find that you have numerous switches with hundreds of interfaces, many of
which do not require monitoring of the link state. In such cases, you may elect to disable link-state traps.
To disable SNMP link-state traps for specific interfaces, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# interface bay 6
switch(config-if)# no link-state-trap
switch(config-if)# link-state-trap
Whenever you disable an SNMP link-state trap for an interface, the command is also added to the
running configuration of the system. To view the running configuration, enter the show running-config
command for the interface.
switch# show running-config
version 3.1(2)
....
interface bay5
interface bay6
no link-state-trap <-----command is added to the running configuration for the interface
interface bay7
Cisco MDS 9000 Family CLI Configuration Guide
33-14
Chapter 33
Purpose
Enters configuration mode.
Enables (default) only IETF extended
linkUp/linkDown notifications.
Enables only Cisco Systems defined
cieLinkUp/cieLinkDown notifications.
Enables only IETF linkUp/linkDown notifications.
Enables (default) only IETF extended
linkUp/linkDown notifications with extra
varbinds.
Enables IETF (linkUp/linkDown) and Cisco
Systems defined (cieLinkUp/cieLinkDown)
notifications.
Enables IEFT (linkUp/linkDown) notifications
with extra varbinds and Cisco Systems defined
(cieLinkUp/cieLinkDown) notifications.
Reverts to the default setting (IETF extended).
Purpose
Enters configuration mode.
Specifies the interface on which to disable SNMP
link-state traps.
Disables SNMP link-state traps for the interface.
Enables SNMP link-state traps for the interface.
OL-18084-01, Cisco MDS NX-OS Release 4.x
Configuring SNMP

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents