Network Management Protocol (Snmp) Commands; Snmp-Server Community - Cisco 300 Series Cli Manual

Stackable managed switches
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

Network Management Protocol (SNMP)
Commands
OL-32830-01 Command Line Interface Reference Guide
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
[
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).
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
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.
community
string [ro | rw | su]
-
view-name]
view
community-string [ip-address]
45
ip-address | ipv6-address
[
IPv6z
]
858

Advertisement

Table of Contents
loading

Table of Contents