DGS-6604
m
snmp-server community
CLI Reference Guide
842
snmp-server community
Use this command to set up the community access string to provide access to
SNMP. Use the no form of the command to remove the specified community
string.
snmp-server community
COMMUNITY-STRING
[view
VIEW-NAME
] [ro | rw]
no snmp-server community
COMMUNITY-STRING
Default
There are two communities set in the default as shown below:
Community
View Name
Access right
private
CommunityView
Read/Write
public
CommunityView
Read Only
ro/rw: is set as read only (ro) if no
[ro | rw]
option is specified.
Command Mode
Global configuration at privilege level 15
Usage Guideline
This command creates a community entry in the community table.
This command provides a more user-friendly method to create a community
string for V1/V2 management.
If the view name specified by the command is different to “CommunityView” (a
default view), than a new view will be created. The other command that the user
can use to create a community string is the
snmp-server user
command. A
community string is unable to be deleted if it has been associated with an snmp-
server host.
Examples
This example shows how to set the read/write community string to
comaccess
in
the mib2 view.
Syntax Description
COMMUNITY-
STRING
Defines the community string that consists of from 1 to 32 characters and
functions much like a password, permitting access to the SNMP protocol. The
syntax can use alphanumeric and special characters, but that does not allow
space and '#' character.
view
VIEW-NAME
(Optional) Name of a previously defined view. The view defines the objects
available to the SNMP community.
ro
(Optional) Specifies read-only access. Authorized management stations are only
able to retrieve MIB objects.
rw
(Optional) Specifies read-write access. Authorized management stations are
able to both retrieve and modify MIB objects.
Switch(config)# snmp-server community comaccess view mib2 rw
Summary of Contents for DGS-6600 Series
Page 1: ...0 9 3 ...