Specifications

Table Of Contents
snmp-server community
MP-788
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
snmp-server community
To set up the community access string to permit access to the Simple Network Management Protocol
(SNMP), use the snmp-server community command in global configuration mode. To remove the
specified community string, use the no form of this command.
snmp-server community string [vi
ew view-name] [ro | rw] [ipv6 nacl] [access-list-number]
no snmp-server community string
Syntax Description
Command Default An SNMP community string permits read-only access to all objects.
Note If the snmp-server community command is not used during the SNMP configuration session, the
command will automatically be added to the configuration after the snmp host command is used. In this
case, the default password (string) for the snmp-server community command will be taken from the
snmp host command.
Command Modes Global configuration
string Community string that consists of 1 to 32 alphanumeric characters and functions
mu
ch like a password, permitting access to SNMP. Blank spaces are not
permitted in the community string.
Note The @ symbol is used for delimiting the context information. Avoid
using the @ symbol as part of the SNMP community string when
configuring this command.
view (Optional) Specifies a previously defined view. The view defines the objects
a
vailable to the SNMP community.
view-name (Optional) Name of a previously defined view.
ro (Optional) Specifies read-only access. Authorized management stations can
r
etrieve only MIB objects.
rw (Optional) Specifies read-write access. Authorized management stations can
b
oth retrieve and modify MIB objects.
ipv6 (Optional) Specifies an IPv6 named access list.
nacl (Optional) IPv6 named access list.
access-list-number (Optional) Integer from 1 to 99 that specifies a standard access list of IP
ad
dresses or a string (not to exceed 64 characters) that is the name of a standard
access list of IP addresses allowed access to the SNMP agent.
Alternatively, an integer from 1300 to 1999 that specifies a list of IP addresses in
th
e expanded range of standard access list numbers that are allowed to use the
community string to gain access to the SNMP agent.