snmp-server community

Use this command to create an SNMP community string and access privileges.

Use the no form of this command to remove an SNMP community string.

To configure the SNMP community name using a double quote ("), include the escape sequence backslash () before the double quote character.

Command Syntax

Copy
snmp-server community WORD (| (view VIEW-NAME version (v1 | v2c ) ( ro)) | 
    (group (network-admin|network-operator)) |( ro) | (use-acl WORD) ) (vrf (NAME|management)|)
    no snmp-server community COMMUNITY-NAME (vrf (NAME|management)|)

Parameter

WORD

Name of the community (Maximum 32 alphanumeric characters)

VIEW-NAME

Name of the snmp view (Maximum 32 alphanumeric characters)

version

Set community string and access privileges

v1

SNMP v1

v2c

SNMP v2c

ro

Read-only access

group

Community group

network-admin

System configured group for read-only

network-operator

System configured group for read-only(default)

ro

Read-only access

use-acl

Access control list (ACL) to filter SNMP requests

WORD

ACL name; maximum length 32 characters

vrf management

Defines the management VRFClosed Virtual Routing and Forwarding instance.

vrf NAME

Specify the user-defined VRF instance name.

Default

None

Applicability

This command was introduced before OcNOS version 1.3. Added VRF NAME parameter in OcNOS version 6.5.3.

Examples

Copy
#configure terminal
(config)#snmp-server community MyComm view MyView1 version v2c ro vrf management