Procedure
PurposeCommand or Action
Enters global 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 global 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 3548 Switch NX-OS System Management Configuration Guide, Release 6.x
132
Configuring SNMP
Configuring the Context to Network Entity Mapping