Cisco Nexus 5000 Series Switch CLI Software Configuration Guide, NX-OS 4.0(1a)N1 (OL-16597-01, January 2009)

Send feedback to nx5000-docfeedback@cisco.com
27-11
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 27 Configuring SNMP
Verifying SNMP Configuration
Assigning SNMP Switch Contact and Location Information
You can assign the switch contact information, which is limited to 32 characters (without spaces), and
the switch location. To assign the information, perform this task:
Verifying SNMP Configuration
To display SNMP configuration information, perform one of the following tasks:
SNMP Example Configuration
This example configures the Cisco Nexus 5000 Series switch to send the Cisco linkUp/linkDown
notifications to one notification host receiver and defines two SNMP users, Admin and NMS:
configuration terminal
snmp-server contact Admin@company.com
snmp-server user Admin auth sha abcd1234 priv abcdefgh
snmp-server user NMS auth sha abcd1234 priv abcdefgh enginID
00:00:00:63:00:01:00:a1:ac:15:10:03
snmp-server host 192.0.2.1 informs version 3 auth NMS
snmp-server host 192.0.2.1
snmp-server enable traps link cisco
Command Purpose
Step 1
switch# configuration terminal
Enters configuration mode.
Step 2
switch(config)# snmp-server contact name
Configures sysContact, the SNMP contact name.
Step 3
switch(config)# snmp-server location
name
Configures sysLocation, the SNMP location.
Step 4
switch(config-callhome)# show snmp
(Optional) Displays information about one or more
destination profiles.
Step 5
switch(config)# copy running-config
startup-config
(Optional) Saves this configuration change.
Command Purpose
show snmp
Displays the SNMP status.
show snmp community
Displays the SNMP community strings.
show snmp engineID
Displays the SNMP engineID.
show snmp group
Displays SNMP roles.
show snmp sessions
Displays SNMP sessions.
show snmp trap
Displays the SNMP notifications enabled or
disabled.
show snmp user
Displays SNMPv3 users.