snmpv3 context

Syntax

snmpv3 context <NAME> vrf <VRF-NAME> [community <STRING>]

no snmpv3 context <NAME> [vrf <VRF-NAME>]

Description

Creates an SNMPv3 context.

The no form of this command removes the specified SNMP context.

Command context

config

Parameters

<NAME>

Specifies the name of the context. Range: 1 - 32 printable ASCII characters, excluding space and question mark.

vrf <VRF-NAME>

Specifies the VRF associated with the context. Default: default.

community <STRING>

Specifies the community string associated with the context. Range: 1 - 32 printable ASCII characters, excluding space and question mark. Default: public.

Authority

Administrators

Examples

Creating an SNMPv3 context named newContext:

switch(config)# snmpv3 context newContext
switch(config)# snmpv3 context newContext vrf vrf_red community private
switch(config)# no snmpv3 context newContext vrf vrf_red

Creating an SNMPv3 context named newContext on VRF myVrf and with community string private.

switch(config)# snmpv3 context newContext vrf myVrf community private

Removing the SNMPv3 context named newContext on VRF myVrf:

switch(config)# no snmpv3 context newContext vrf myVrf