Chapter 27
Configuring SNMP
S e n d f e e d b a c k t o n x 5 0 0 0 - d o c f e e d b a c k @ c i s c o . c o m
To configure a host receiver for SNMPv1 traps in a global configuration mode, perform this task:
Command
switch(config)# snmp-server host
ip-address traps {version 1] community
[udp_port number]
To configure a host receiver for SNMPv2c traps or informs in a global configuration mode, perform this
task:
Command
switch(config)# snmp-server host
ip-address {traps | informs} version 2c
community [udp_port number]
To configure a host receiver for SNMPv3 traps or informs in a global configuration mode, perform this
task:
Command
switch(config)# snmp-server host
ip-address {traps | informs} version 3
{auth | noauth | priv } username [udp_port
number]
The following example shows how to configure a host receiver for an SNMPv3 inform:
switch(config)# snmp-server host 192.0.2.1 informs version 3 auth NMS
Note
The SNMP manager must know the user credentials (authKey/PrivKey) based on the SNMP engineID
of the Cisco Nexus 5000 Series switch to authenticate and decrypt the SNMPv3 messages.
Configuring the Notification Target User
You must configure a notification target user on the device to send SNMPv3 inform notifications to a
notification host receiver.
The Cisco Nexus 5000 Series switch uses the credentials of the notification target user to encrypt the
SNMPv3 inform notification messages to the configured notification host receiver.
Note
For authenticating and decrypting the received INFORM PDU, The notification host receiver should
have the same user credentials as configured in the Cisco Nexus 5000 Series switch to authenticate and
decrypt the informs.
OL-16597-01
Purpose
Configures a host receiver for SNMPv1 traps. The
community can be any alphanumeric string up to
255 characters. The UDP port number range is
from 0 to 65535.
Purpose
Configures a host receiver for SNMPv2c traps or
informs. The community can be any alphanumeric
string up to 255 characters. The UDP port number
range is from 0 to 65535.
Purpose
Configures a host receiver for SNMPv2c traps or
informs. The username can be any alphanumeric
string up to 255 characters. The UDP port number
range is from 0 to 65535.
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Configuring SNMP
27-7