SNMP Commands
snmp-server community
Cisco 220 Series Smart Plus Switches Command Line Interface Reference Guide Release 1.0.0.x
439
32
Parameters
•
community-string
—The SNMP community name. The community string is
used as an input parameter to snmp-server user
for SNMPv3. (Range: 0 to
20 characters)
•
view
view-name
—(Optional) Specifies the SNMP view (configured using
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
group-name
—Specifies the SNMP group (configured using the
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-
server community
community-string
[view
view-name
] {ro | rw} command. The
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
community-string
group
group-name
command.
The
group-name
value is used to restrict the access rights of a community string.
When a group name is specified, the software: