xStack
®
DGS-3400 Series Layer 2 Gigabit Ethernet Managed Switch CLI Manual
529
create snmp community view
This is SNMPv3 command, if it is used; All SNMPv1/v2 commands are not necessary.
Syntax
create snmp community <community_string 32> view <view_name 32> [read_only |
read_write]
Description
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.
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-3450:admin#create snmp community System view CommunityView read_only
Command: create snmp community System view CommunityView read_only
Success.
DGS-3450:admin#
delete snmp community
Purpose
Use to remove an SNMP community string.
Syntax
delete snmp community <community_string 32>
Description
This command is used to delete an SNMP community string.
Note: 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.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To delete a SNMP community:
DGS-3450:admin#delete snmp community System
Command: delete snmp community System
Success.
DGS-3450:admin#