S Commands
snmp-server context
376
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
snmp-server context
To configure the Simple Network Management Protocol (SNMP) context to logical network entity
mapping, use the snmp-server context command. To remove the context, use the no form of this
command.
snmp-server context context-name [instance instance-name] [vrf vrf-name] [topology
topology-name]
no snmp-server context context-name [instance instance-name] [vrf vrf-name] [topology
topology-name]
Syntax Description
Defaults None
Command Modes Global configuration mode
Supported User Roles network-admin
vdc-admin
Command History
Usage Guidelines Use the snmp-server context command to map between SNMP contexts and logical network entities,
such as protocol instances or VRFs.
Do not use the instance, vrf, or topology keywords to delete a context. If you use these keywords, you
map the context to a zero-length string.
If you are using SNMPv2c, use the snmp-server mib community-map command to map an SNMPv2c
community to an SNMP context and use the snmp-server context command to map this context to a
logical network entity.
For more information on context mapping, see the Cisco Nexus 7000 Series NX-OS Security
Configuration Guide, Release 6.x.
This command does not require a license.
context-name SNMP context. The name can be any alphanumeric string up to 32 characters.
instance
instance-name
(Optional) Specifies a protocol instance. The name can be any alphanumeric
string up to 32 characters.
vrf vrf-name (Optional) Specifies the virtual routing and forwarding (VRF) instance. The name
can be any alphanumeric string up to 32 characters.
topology
topology-name
(Optional) Specifies the topology. The name can be any alphanumeric string up
to 32 characters.
Release Modification
4.0(2) This command was introduced.