snmpv3 context
Syntax
snmpv3 context <NAME> vrf <VRF-NAME> [community <STRING>]
no snmpv3 context <NAME> [vrf <VRF-NAME>]
Description
Creates an SNMPv3 context on the specified VRF.
Theno
form of this command removes the specified SNMP context.
Command context
config
Parameters
<NAME>
Specifies the name of the context. Range: 1 to 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 SNMP community string associated with the context. Range: 1 to 32 printable ASCII characters, excluding space and question mark. Default: public.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Creating an SNMPv3 context named newContext:
switch(config)# snmpv3 context newContext
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