45
OL-32830-01 Command Line Interface Reference Guide
858
Network Management Protocol (SNMP)
Commands
45.0
45.1
snmp-server community
To set the community access string (password) that permits access to SNMP
commands (v1 and v2), use the snmp-server community Global Configuration
mode command. This is used for SNMP commands, such as GETs and SETs.
This command configures both SNMP v1 and v2.
To remove the specified community string, use the no form of this command.
Syntax
snmp-server community
community
-
string [ro | rw | su]
[
ip-address | ipv6-address
]
[
mask
mask
| prefix
prefix-length] [
view
view-name]
no snmp-server community
community-string [ip-address]
Parameters
•
community-string—Define the password that permits access to the SNMP
protocol. (Range: 1–20 characters).
•
ro—(Optional) Specifies read-only access (default)
•
rw—(Optional) Specifies read-write access
•
su—(Optional) Specifies SNMP administrator access
•
ip-address—(Optional) Management station IP address. The default is all IP
addresses. This can be an IPv4 address, IPv6 or IPv6z address. See
IPv6z
Address Conventions
.
•
mask—(Optional) 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.
Summary of Contents for 300 Series
Page 2: ......