xStack
® 
DGS-3120 Series Managed Switch CLI Reference Guide 
648 
 
Use an SNMP community string to define the relationship between the SNMP manager and the 
agent. The community string acts like a password to permit access to the agent on the Switch. You 
can specify one or more of the following characteristics associated with the string: 
 
An access list of IP addresses of the SNMP managers that are permitted to use the community 
string to gain access to the agent.  
A MIB view, which defines the subset of all MIB objects accessible to the given community.  
Read and write or read-only permission for the MIB objects accessible to the community. 
 
Format 
create snmp community <community_string 32> view <view_name 32> [read_only | 
read_write] 
 
Parameters 
community - An alphanumeric string of up to 32 characters used to authentication of users 
wanting access to the Switch’s SNMP agent. 
 - Enter the community string value here. 
view_name - Specify to view a MIB name. 
<view_name 32> - Enter the MIB view name here. This name can be up to 32 characters 
readonly - Allows the user using the above community string to have read only access to the 
Switch’s SNMP agent. 
readwrite - Allows the user using the above community string to have read and write access to 
the Switch’s SNMP agent. The default read only community string is public. The default read 
write community string is private. 
 
Restrictions 
Only Administrator-level users can issue this command. 
 
Example 
To create a read-only level SNMP community “System” with a “CommunityView” view: 
DGS-3120-24TC:admin# create snmp community System view CommunityView read_only  
Command: create snmp community System view CommunityView read_only 
 
Success. 
 
 
72-2  delete snmp community 
Description 
This command is used to delete an SNMP community string.