Switch Management Commands 2099
Syntax
snmp-server community string {ro | rw | su} [view view-name]| [ipaddress
ipaddress]
no snmp-server community string
• string—Permits access to the SNMP protocol. (Range: 1-20 characters)
• ro—Indicates read-only access.
• rw—Indicates read-write access.
• su—Indicates SNMP administrator access.
• ipaddress—Specifies the IP address of the management station. If no IP
address is specified, all management stations are permitted. Both IPv4
and IPv6 addresses are accepted.
• view-name—Specifies the name of a previously defined view. For
information on views, see the User Guidelines below. (Range: 1-30
characters)
Default Configuration
No community is defined. Default to read–only access if not specified.
Command Mode
Global Configuration mode
User Guidelines
You can not specify viewname for su, which has an access to the whole MIB.
You can use the view name to restrict the access rights of a community string.
When it is specified:
• An internal security name is generated.
• The internal security name for SNMPv1 and SNMPv2 security models is
mapped to an internal group name.
• The internal group name for SNMPv1 and SNMPv2 security models is
mapped to a view name. If ro is specified, then read-view and notify-
view are mapped. If rw is specified, then read-view, notify-view, and
write-view are mapped.