snmp-server community-map

Use this command to map the community name with context and SNMPv2 user.

Use no form of this command to remove the community mapping.

Community can be mapped with one context and user.

Command Syntax

Copy
  snmp-server community-map WORD context WORD user WORD (vrf (NAME|management)|)
  no snmp-server community-map WORD context WORD user WORD (vrf (NAME|management)|)

Parameters

WORD

SNMP community name

context

SNMP context name

WORD

Context string

user

SNMP user name

WORD

User string

vrf management

Defines the management VRF instance.

vrf NAME

Specify the user-defined VRF instance name.

Command Mode

Configure mode

Applicability

This command is introduced inOcNOS version 5.1 MR . Added VRF NAME parameter inOcNOS version 6.5.3.

Examples

Copy
OcNOS(config)#snmp-server community-map test context ctx2 user testing vrf management