PurposeCommand or Action
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
Deletes the mapping between an SNMP context
and a protocol instance, VRF, or topology. The
(Optional) switch(config)# no snmp-server
context context-name [instance instance-name]
[vrf vrf-name] [topology topology-name]
Step 4
names can be any alphanumeric string up to 32
characters.
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
Disabling SNMP
Procedure
PurposeCommand or Action
Enters global configuration mode.configure terminal
Example:
Step 1
switch# configure terminal
switch(config)#
Disables SNMP.switch(config) # no snmp-server protocol
enable
Step 2
SNMP is disabled by default.
Example:
no snmp-server protocol enable
Verifying the SNMP Configuration
To display SNMP configuration information, perform one of the following tasks:
PurposeCommand
Displays the SNMP status.show snmp
Displays the SNMP community strings.show snmp community
Cisco Nexus 3548 Switch NX-OS System Management Configuration Guide, Release 7.x
106
Configuring SNMP
Disabling SNMP