D-Link DXS-1210-12TC Reference Manual page 302

Dxs-1210 series l2 10 gigabit ethernet switch
Hide thumbs Also See for DXS-1210-12TC:
Table of Contents

Advertisement

38-12
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
7 COMMUNITY-STRING
view VIEW-NAME
ro
rw
access
IP-ACL-NAME
Default
Community
private
public
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 Series Smart Managed Switch CLI Reference Guide
snmp-server community
(Optional) Specifies the community string in the plain text form with a
maximum of 32 alphanumeric characters. This is the default option.
(Optional) Specifies the community string in the encrypted form.
(Optional) Specifies a view name of a previously defined view. It
defines the view accessible by the SNMP community.
(Optional) Specifies read-only access.
(Optional) Specifies read-write access.
Set access control list for this community
(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.
View Name
CommunityView
CommunityView
Access right
Read/Write
Read Only
299

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxs-1210-12scDxs-1210-10tsDxs-1210-16tc

Table of Contents