D-Link DGS-3130 Emulator - Page 768
DGS-3130 Layer 3 Stackable Managed Switch CLI Reference Guide, COMMUNITY-STRING, VIEW-NAME, IP-ACL-
View all D-Link DGS-3130 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 768 highlights
DGS-3130 Layer 3 Stackable Managed Switch CLI Reference Guide 76-3 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] [context CONTEXT] no snmp-server community [0 | 7] COMMUNITY-STRING Parameters 0 COMMUNITY-STRING 7 COMMUNITY-STRING view VIEW-NAME ro rw access IP-ACL-NAME context CONTEXT (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. (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. (Optional) Specifies the SNMP context name. Default Community private public View Name CommunityView CommunityView Access right Read/Write 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)# 764