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-9
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 configure SNMPv2c notifications using IPv6, follow these steps:
Note
Switches can forward events (SNMP traps and informs) up to 10 destinations.
Configuring SNMPv3 Notifications
To configure SNMPv3 notifications using IPv4, follow these steps:
Command
Purpose
Step 1
switch#
config t
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
snmp-server host
2001:0DB8:800:200C::417A traps version 2c
private udp-port 1163
Configures the specified host to receive
SNMPv2c traps using SNMPv2c community
string (private).
switch(config)#
no snmp-server host
2001:0DB8:800:200C::417A traps version 2c
private udp-port 2162
Prevents the specified host from receiving
SNMPv2c traps on the configured UDP port
using SNMPv2c community string (private).
Step 3
switch(config)#
snmp-server host
2001:0DB8:800:200C::417A informs version 2c
private udp-port 1163
Configures the specified host to receive
SNMPv2c informs using SNMPv2c
community string (private).
switch(config)#
no snmp-server host
2001:0DB8:800:200C::417A informs version 2c
private udp-port 2162
Prevents the specified host from receiving
SNMPv2c informs on the configured UDP
port using SNMPv2c community string
(private).
Command
Purpose
Step 1
switch#
config t
switch(config)#
Enters configuration mode.
Step 2
switch(config)#
snmp-server host 16.20.11.14
traps version 3 noauth testuser udp-port 1163
Configures the specified host to receive
SNMPv3 traps using SNMPv3 user (testuser)
and securityLevel of noAuthNoPriv.
switch(config)#
snmp-server host 16.20.11.14
informs version 3 auth testuser udp-port 1163
Configures the specified host to receive
SNMPv3 informs using SNMPv3 user
(testuser) and securityLevel of AuthNoPriv.
switch(config)#
snmp-server host 16.20.11.14
informs version 3 priv testuser udp-port 1163
Configures the specified host to receive
SNMPv3 informs using SNMPv3 user
(testuser) and securityLevel of AuthPriv.
switch(config)#
no snmp-server host
172.18.2.247 informs version 3 testuser noauth
udp-port 2162
Prevents the specified host from receiving
SNMPv3 informs.