beautypg.com

Snmp-server context, Ver context,s, P-server context,sn – Brocade Network OS Command Reference v4.1.0 User Manual

Page 1263

background image

Network OS Command Reference

1225

53-1003115-01

snmp-server context

2

snmp-server context

Maps the context name in an SNMPv3 packet’s protocol data unit (PDU) to the name of a VPN
routing and forwarding (VRF) instance.

Synopsis

snmp-server context context_name vrf-name vrf_name

no snmp-server-context context_name vrf-name vrf_name

Operands

context

Enables the specification of a variable context_name that can be passed in
the SNMP PDU.

vrf-name

Enables the specification of a variable vrf_name that can be retrieved
when an SNMP request is sent with the configured context_name. This
variable can be used in SNMP requests for “ipCidrRouteTable.”

Defaults

None

Command Modes

Global configuration mode

Description

Use this command to create a context and map it to the given VRF. The context-to-VRF mapping is
one-to-one and is applicable to all SNMP versions.

Usage Guidelines

None

Examples

The following snmp-server context command maps the context name “mycontext” to the VRF
name “myvrf.”

switch(config)# snmp-server context mycontext vrf-name myvrf

The following snmp-server context command deletes the VRF name “myvrf.”

switch(config)# no snmp-server context mycontext vrf-name myvrf

The following snmp-server context command creates the new VRF name “mynewvrf”and maps the
context to it.

switch(config)# snmp-server context mycontext vrf-name mynewvrf

See Also

show running-config snmp-server, snmp-server community, snmp-server contact,
snmp-server location, snmp-server user, snmp-server v3host