![D-Link DGS-1210/ME series Reference Manual Download Page 112](http://html.mh-extra.com/html/d-link/dgs-1210-me-series/dgs-1210-me-series_reference-manual_77989112.webp)
DGS-1210 Metro Ethernet Managed Switch CLI Reference Guide
92
View Name Subtree OID OID Mask View Type
------------ ---------------------- ---------------------- ---------
dlink 1.2.3.4 1.1.1.1 Excluded
ReadWrite 1 1 Included
Total Entries: 2
DGS-1210-28MP/ME:5#
create snmp community
Purpose
To create an SNMP community string to define the relationship
between the SNMP manager and an SNMP agent.
Syntax
create snmp community <community_string 32> [<username
32> | view <view_name 32>] [read_only | read_write]
Description
The
create snmp community
command creates an SNMP
community string and assigns access-limiting characteristics to this
community string. The community string acts like a password to
permit access to the agent on the Switch. One or more of the
following characteristics can be associated with the community
string:
An Access List of IP addresses of SNMP managers that are
permitted to use the community string to gain access to the Switch’s
SNMP agent.
A MIB view that defines the subset of all MIB objects to be
accessible to the SNMP community.
Read/write or read-only level permission for the MIB objects
accessible to the SNMP community.
Parameters
<community_string 32>
− A string of up to 32 alphanumeric
characters that is used to identify members of an SNMP community.
This string is used like a password to give remote SNMP managers
access to MIB objects in the Switch’s SNMP agent.
<username 32>
− A string of up to 32 alphanumeric characters that
is used to identify the group of MIB objects that a remote SNMP
manager is allowed to access on the Switch.
<view_name 32>
− A string of up to 32 alphanumeric characters that
is used to identify the view name.
[read_only | read_write]
– Allow the above community string user to
have read-only or read-write access to the switch’s SNMP agent.
The default is read-only.
Restrictions
Only administrator, operate or power user-level users can issue this
command.
Example usage:
To create the SNMP community string ‘dlink:’
DGS-1210-28MP/ME:5# create snmp community dlink view dlink read_only
Command: create snmp community dlink view dlink read_only
Success.
DGS-1210-28MP/ME:5#