193
Parameters
read
: Assigns the specified community read-only access to MIB objects. A read-only community can
only inquire MIB information.
write
: Assigns the specified community read and write access to MIB objects. A read and write
community can configure MIB information.
simple
: Specifies a community name in plaintext form. For security purposes, the community name
specified in plaintext form will be stored in encrypted form.
cipher
: Specifies a community name in encrypted form.
community-name
: Specifies the community name. The plaintext form is a case-sensitive string of 1
to 32 characters. The encrypted form is a case-sensitive string of 33 to 73 characters. Input a string
as escape characters after a backslash (\).
mib-view
view-name
: Specifies the MIB view available for the community. The
view-name
argument
represents a MIB view name, a string of 1 to 32 characters. A MIB view represents a set of
accessible MIB objects. If you do not specify a view, the specified community can access the MIB
objects in the default MIB view
ViewDefault
.
user-role
role-name
: Specifies a user role name for the community, a case-sensitive string of 1 to 63
characters.
acl
: Specifies a basic IPv4 ACL for the community.
ipv4-acl-number
: Specifies a basic IPv4 ACL by its number in the range of 2000 to 2999.
name
ipv4-acl-name
: Specifies a basic IPv4 ACL for the community. The
ipv4-acl-name
argument
represents a basic IPv4 ACL name, a case-insensitive string of 1 to 63 characters.
acl
ipv6:
Specifies a basic IPv6 ACL for the community.
ipv6-acl-number
: Specifies a basic IPv6 ACL by its number in the range of 2000 to 2999.
name ipv6-acl-name
: Specifies a basic IPv6 ACL for the community. The
ipv6-acl-name
argument
represents a basic IPv6 ACL name, a case-insensitive string of 1 to 63 characters.
Usage guidelines
This command is not available in FIPS mode.
An SNMP community is identified by a community name. It contains a set of NMSs and SNMP
agents. Devices in an SNMP community authenticate each other by using the community name. An
NMS and an SNMP agent can communicate only when they use the same community name.
Typically,
public
is used as the read-only community name and
private
is used as the read and write
community name. To enhance security, you can assign your SNMP communities a name other than
public
and
private
.
The
snmp-agent community
command allows you to use either of the following modes to control
SNMP community access to MIB objects:
•
View-based access control model
—VACM mode controls access to MIB objects by
assigning MIB views to SNMP communities.