Chapter 33
Configuring SNMP
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
Configuring SNMPv2c Notifications
To configure SNMPv2c notifications using IPv4, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# snmp-server host 171.71.187.101
traps version 2c private udp-port 1163
switch(config)# no snmp-server host
171.71.187.101 traps version 2c private
udp-port 2162
Step 3
switch(config)# snmp-server host 171.71.187.101
informs version 2c private udp-port 1163
switch(config)# no snmp-server host
171.71.187.101 informs version 2c private
udp-port 2162
To configure SNMPv2c notifications using IPv6, follow these steps:
Command
Step 1
switch# config t
switch(config)#
Step 2
switch(config)# snmp-server host
2001:0DB8:800:200C::417A traps version 2c
private udp-port 1163
switch(config)# no snmp-server host
2001:0DB8:800:200C::417A traps version 2c
private udp-port 2162
Step 3
switch(config)# snmp-server host
2001:0DB8:800:200C::417A informs version 2c
private udp-port 1163
switch(config)# no snmp-server host
2001:0DB8:800:200C::417A informs version 2c
private udp-port 2162
Switches can forward events (SNMP traps and informs) up to 10 destinations.
Note
OL-18084-01, Cisco MDS NX-OS Release 4.x
SNMP Trap and Inform Notifications
Purpose
Enters configuration mode.
Configures the specified host to receive
SNMPv2c traps using SNMPv2c community
string (private).
Prevents the specified host from receiving
SNMPv2c traps on the configured UDP port
using SNMPv2c community string (private).
Configures the specified host to receive
SNMPv2c informs using SNMPv2c
community string (private).
Prevents the specified host from receiving
SNMPv2c informs on the configured UDP
port using SNMPv2c community string
(private).
Purpose
Enters configuration mode.
Configures the specified host to receive
SNMPv2c traps using SNMPv2c community
string (private).
Prevents the specified host from receiving
SNMPv2c traps on the configured UDP port
using SNMPv2c community string (private).
Configures the specified host to receive
SNMPv2c informs using SNMPv2c
community string (private).
Prevents the specified host from receiving
SNMPv2c informs on the configured UDP
port using SNMPv2c community string
(private).
Cisco MDS 9000 Family CLI Configuration Guide
33-9