OcNOS-SP : System Management Guide : System Management Command Reference : Simple Network Management Protocol : snmp-server community
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.
Command Syntax
snmp-server community WORD (| (view VIEW-NAME version (v1 | v2c ) ( ro)) |
(group (network-admin|network-operator)) |( ro) | (use-acl WORD) ) (vrf management|)
no snmp-server community COMMUNITY-NAME (vrf management|)
Parameters
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
management
Virtual Routing and Forwarding name
Default
No default value specified.
Command Mode
Configure mode
Applicability
This command was introduced before OcNOS version 1.3.
Examples
#configure terminal
(config)#snmp-server community MyComm view MyView1 version v2c ro vrf management
Last modified date: 10/19/2023