Specifications

Table Of Contents
snmp-server community
MP-789
Cisco IOS Multiprotocol Label Switching Command Reference
January 2010
Command History
Usage Guidelines The no snmp-server command disables all versions of SNMP (SNMPv1, SNMPv2C, SNMPv3).
The first snmp-
server command that you enter enables all versions of SNMP.
To configure SNMP community strings for the MPLS LDP MIB, use the s
nmp-server community
command on the host network management station (NMS).
The s
nmp-server community command can be used to specify only an IPv6 named access list, only an
IPv4 access list, or both. For you to configure both IPv4 and IPv6 access lists, the IPv6 access list must
appear first in the command statement.
Note The @ symbol is used as a delimiter between the community string and the context in which it is used.
For example, specific VLAN information in BRIDGE-MIB may be polled using
community@VLAN_ID (for example, public@100) where 100 is the VLAN number. Avoid using the
@ symbol as part of the SNMP community string when configuring this command.
Examples The following example shows how to set the read/write community string to newstring:
Router(config)# snmp-server community newstring rw
The following example shows how to allow read-only access for all objects to members of the standard
named access list lmnop that specify the comaccess community string. No other SNMP managers have
access to any objects.
Router(config)# snmp-server community comaccess ro lmnop
The following example shows how to assign the string comaccess to SNMP, allow read-only access, and
specify that IP access list 4 can use the community string:
Router(config)# snmp-server community comaccess ro 4
Release Modification
10.0 This command was introduced.
12.0(14)ST This command was integrated into Cisco IOS Release 12.0(14)ST.
12.0(17)S This command was integrated into Cisco IOS Release 12.0(17)S.
12.2(14)S This command was integrated into Cisco IOS Release 12.2(14)S.
12.3(2)T The access list values were enhanced to support the expanded range of
sta
ndard access list values and to support named standard access lists.
12.0(27)S The ipv
6 nacl keyword and argument pair was added to support assignment
of IPv6 named access lists. This keyword and argument pair is not supported
in Cisco IOS 12.2S releases.
12.3(14)T The ipv
6 nacl keyword and argument pair was integrated into Cisco IOS
Release 12.3(14)T to support assignment of IPv6 named access lists. This
k
eyword and argument pair is not supported in Cisco IOS 12.2S releases.
12.2(28)SB This command was integrated into Cisco IOS Release 12.2(28)SB.
12.2(33)SRA This command was integrated into Cisco IOS Release 12.2(33)SRA.
12.4(11)T This command was integrated into Cisco IOS Release 12.4(11)T.
12.2(31)SB2 This command was integrated into Cisco IOS Release 12.2(31)SB2.
12.2(33)SXH This command was integrated into Cisco IOS Release 12.2(33)SXH.