12
198
Syntax
snmp-server community
[
mask
prefix-length] [
mask
| prefix
no snmp-server community
Parameters
•
community-string—Define the password that permits access to the SNMP
protocol. (Range: 1–20 characters). This string is used as an input parameter
to
snmp-server user
•
ro—Specifies read-only access (default)
•
rw—Specifies read-write access
•
su—Specifies SNMP administrator access
•
view
view-name
command
snmp-server view
configurations is imposed on the user). The view defines the objects
available to the community. It is not relevant for su, which has access to the
whole MIB. If unspecified, all the objects, except the community-table and
SNMPv3 user and access tables, are available. (Range: 1–30 characters)
•
ip-address—Management station IP address. The default is all IP
addresses. This can be an IPv4 address, IPv6 or IPv6z address. See
Address
Conventions.
•
mask—Specifies the mask of the IPv4 address. This is not a network mask,
but rather a mask that defines which bits of the packet's source address are
compared to the configured IP address. If unspecified, it defaults to
255.255.255.255. The command returns an error if the mask is specified
without an IPv4 address.
•
prefix-length—Specifies the number of bits that comprise the IPv4 address
prefix. If unspecified, it defaults to 32. The command returns an error if the
prefix-length is specified without an IPv4 address.
Default Configuration
No community is defined
Command Mode
Global Configuration mode
Network Management Protocol (SNMP) Commands
community
string [ro | rw | su]
-
view-name]
view
community-string [ip-address]
for SNMP v3.
—Specifies the name of a view configured using the
(no specific order of the command
78-21075-01 Command Line Interface Reference Guide
ip-address | ipv6-address
[
IPv6z
]