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
31-14
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 31 Configuring SNMP
SNMP Trap and Inform Notifications
To disable SNMP link-state traps for specific interfaces, follow these steps:
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
...
To view the SNMP link-state trap configuration for a particular interface, enter the
show interface
command.
switch#
show interface bay 6
bay6 is down (Administratively down)
Hardware is Fibre Channel
Port WWN is 20:0b:00:05:30:01:70:2c
Admin port mode is auto, trunk mode is on
snmp link-state traps are disabled
Port vsan is 1
Receive data field Size is 2112
Beacon is turned off
5 minutes input rate 0 bits/sec, 0 bytes/sec, 0 frames/sec
5 minutes output rate 0 bits/sec, 0 bytes/sec, 0 frames/sec
0 frames input, 0 bytes
0 discards, 0 errors
0 CRC, 0 unknown class
0 too long, 0 too short
0 frames output, 0 bytes
0 discards, 0 errors
0 input OLS, 0 LRR, 0 NOS, 0 loop inits
0 output OLS, 0 LRR, 0 NOS, 0 loop inits
Displaying SNMP Security Information
Use the
show snmp
commands to display configured SNMP information (see
Example 31-1
and
31-6
).
Example 31-1 Displays SNMP User Details
switch#
show snmp user
______________________________________________________________
SNMP USERS
______________________________________________________________
Command
Purpose
Step 1
switch#
config t
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
interface bay 6
Specifies the interface on which to disable SNMP
link-state traps.
switch(config-if)#
no link-state-trap
Disables SNMP link-state traps for the interface.
switch(config-if)#
link-state-trap
Enables SNMP link-state traps for the interface.