xStack® DGS-3420 Series Layer 2 Managed Stackable Gigabit Switch CLI Reference Guide
884
Restrictions
None.
Example
To display SNMP view records:
DGS-3420-28SC:admin#show snmp view
Command: show snmp view
Vacm View Table Settings
View Name Subtree View Type
-------------------- ------------------------- ----------
restricted 1.3.6.1.2.1.1 Included
restricted 1.3.6.1.2.1.11 Included
restricted 1.3.6.1.6.3.10.2.1 Included
restricted 1.3.6.1.6.3.11.2.1 Included
restricted 1.3.6.1.6.3.15.1.1 Included
CommunityView 1 Included
CommunityView 1.3.6.1.6.3 Excluded
CommunityView 1.3.6.1.6.3.1 Included
Total Entries: 8
15-8 create snmp community
Description
This command is used to create an SNMP community string. 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: 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_string 32> - Specify the community string. The maximum string length is 32
characters.
view - Specify the view name of the MIB. The maximum length is 32 characters.
<view_name 32> - Specify the view name of the MIB. The maximum length is 32 characters.
read_only - Specify read-only permission.