Cisco Nexus 5000 Series Switch CLI Software Configuration Guide (OL-16597-01, July 2009)
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.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configuration terminal
Step 1
Configures sysContact, the SNMP contact
name.
switch(config)# snmp-server contact name
Step 2
Configures sysLocation, the SNMP location.switch(config)# snmp-server location
name
Step 3
(Optional)
Displays information about one or more
destination profiles.
switch# show snmp
Step 4
(Optional)
Saves this configuration change.
switch# copy running-config
startup-config
Step 5
Configuring the Context to Network Entity Mapping
You can configure an SNMP context to map to a logical network entity, such as a protocol instance or VRF.
Procedure
PurposeCommand or Action
Enters configuration mode.switch# configuration terminal
Step 1
Maps an SNMP context to a protocol instance, VRF,
or topology. The names can be any alphanumeric string
up to 32 characters.
switch(config)# snmp-server context
context-name [instance instance-name]
[vrf vrf-name] [topology topology-name]
Step 2
Maps an SNMPv2c community to an SNMP context.
The names can be any alphanumeric string up to 32
characters.
switch(config)# snmp-server mib
community-map community-name
context context-name
Step 3
(Optional)
Deletes the mapping between an SNMP context and a
protocol instance, VRF, or topology. The names can
be any alphanumeric string up to 32 characters.
switch(config)# no snmp-server context
context-name [instance instance-name]
[vrf vrf-name] [topology topology-name]
Step 4
Do not enter an instance, VRF, or topology to
delete a context mapping. If you use the
instance, vrf, or topology keywords, you
configure a mapping between the context and
a zero-length string.
Note
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01 385
Configuring SNMP
Assigning SNMP Switch Contact and Location Information