DWS-3160 Series Gigabit Ethernet Unified Switch CLI Reference Guide
605
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 Specifies 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.
<community_string>
- Enter the community string value here.
view_name
- Specifies to view a MIB name.
<view_name 32>
- Enter the MIB view name here. This name can be up to 32 characters
long.
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 Administrators can issue this command.
Example
To create a read-only level SNMP community “System” with a “CommunityView” view:
DWS-3160-24PC:admin# create snmp community System view CommunityView read_only
Command: create snmp community System view CommunityView read_only
Success.
DWS-3160-24PC:admin#
66-2
delete snmp community
Description
This command is used to delete an SNMP community string.