xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
631
create snmp community view
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.
Syntax
create snmp community <community_string 32> view <view_name 32> [read_only |
read_write]
Description The create snmp community command is used to creates an SNMP community string.
This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
<community_string 32> - Community string. Max string length is 32. The acceptable chars for
community string are the same as a general octet string, except that ‘#’ is not accepted.
view - A MIB view name.
[read_only | read_write] - Read and write or read-only permission. Allows the user using the
above community string to have read only or read and write access to the switch’s SNMP
agent.
Restrictions Only Administrator and Operator-level users can issue this command.
Example usage:
To create a read-only level SNMP community “System” with a “CommunityView” view:
DGS-3627:admin# create snmp community System view CommunityView read_only
Command: create snmp community System view CommunityView read_only
Success.
show snmp community
Purpose This command is used to display the community string configurations.
Syntax
show snmp community { <community_string> }
Description The show snmp community command displays the community string configurations.
Note: This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Parameters
community_string - Community string.
If not specify community string , all community string information will be displayed.
Restrictions None.
Example usage:
To display SNMP community: