DXS-1210 Series Smart Managed Switch CLI Reference Guide
299
38-12
snmp-server community
This command is used to configure the community string to access the SNMP. Use the no form of this
command to remove the community string,
snmp-server community [0 | 7] COMMUNITY-STRING [view VIEW-NAME] [ro | rw] [access IP-
ACL-NAME]
no snmp-server community COMMUNITY-STRING
Parameters
0 COMMUNITY-STRING
(Optional) Specifies the community string in the plain text form with a
maximum of 32 alphanumeric characters. This is the default option.
7 COMMUNITY-STRING
(Optional) Specifies the community string in the encrypted form.
view VIEW-NAME
(Optional) Specifies a view name of a previously defined view. It
defines the view accessible by the SNMP community.
ro
(Optional) Specifies read-only access.
rw
(Optional) Specifies read-write access.
access
Set access control list for this community
IP-ACL-NAME
(Optional) Specifies the name of the standard access list to control the
user to use this community string to access to the SNMP agent.
Specifies the valid user in the source address field of the access list
entry.
Default
Community
View Name
Access right
private
CommunityView
Read/Write
public
CommunityView
Read Only
Command Mode
Global Configuration Mode.
Command Default Level
Level: 15.
Usage Guideline
This command provides an easy way to create a community string for SNMPv1 and SNMPv2c
management. When creating a community with the snmp-server community command, two SNMP
group entries, one for SNMPv1 and one for SNMPv2c, which has the community name as their group
names are created. If the view is not specified, it is permitted to access all objects.
Example
This example shows how a MIB view “interfacesMibView” is created and a community string
“comaccess” which can do read write access the interfacesMibView view is created.
Switch# configure terminal
Switch(config)#snmp-server view interfacesMibView 1.3.6.1.2.1.2 included
Switch(config)# snmp-server community comaccess view interfacesMibView rw
Switch(config)#
Содержание DXS-1210-10TS
Страница 1: ......
Страница 246: ...DXS 1210 Series Smart Managed Switch CLI Reference Guide 243 ...
Страница 260: ...DXS 1210 Series Smart Managed Switch CLI Reference Guide 257 ...