SNMP Commands
snmp-server community
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
Parameters
community-string
•
used as an input parameter to snmp-server user for SNMPv3. (Range: 0 to
20 characters)
view-name
•
view
the snmp-server view command) to define the objects available to the
community. It is not relevant for su, which has access to the whole MIB. If
unspecified, all objects, except the community-table, SNMPv3 user, and
access tables, are available. (Range: 1 to 30 characters)
•
ro—Read-only access (default).
•
rw—Read-write access.
group-name
•
group
snmp-server group command with v1 or v2) to define the objects available
to the community. (Range: 1 to 30 characters)
Default Configuration
No SNMP community is defined.
Command Mode
Global Configuration mode
User Guidelines
To associate communities with access rights directly (basic mode), use the snmp-
community-string
server community
view-name
value is used to restrict the access rights of a community string. When
a view name is specified, the software:
•
Generates an internal security name.
•
Maps the internal security name for SNMPv1 and SNMPv2 security models
to an internal group name.
•
Maps the internal group name for SNMPv1 and SNMPv2 security models to
the view name (read-view and notify-view always, and for rw for write-view
also).
To associate communities with access rights through groups (advanced mode),
use the snmp-server community
group-name
The
value is used to restrict the access rights of a community string.
When a group name is specified, the software:
—The SNMP community name. The community string is
—(Optional) Specifies the SNMP view (configured using
—Specifies the SNMP group (configured using the
view-name
[view
community-string
] {ro | rw} command. The
group
group-name
command.
32
439