O'Reilly logo

Cisco IOS in a Nutshell, 2nd Edition by James Boney

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

snmp-server community — global

Synopsis

snmp-server community string [view view-name] {ro | rw} [access-list]
no snmp-server community string

Configures

SNMP community access strings

Default

Read-only access; community string public

Description

This command sets the community string for SNMPv1 protocol access.

string

The password for the SNMP access.

view view-name

Optional. view-name is the name of a view defined with the snmp-server view command. view defines which SNMP objects can be viewed with this SNMP community string.

ro

Defines the community string for read-only access.

rw

Defines the community string for read/write access.

access-list

Optional. The number of a standard access list. The community string defined with this command is usable only by hosts whose IP addresses match this access list.

Example

The following command defines the community string mystring, which allows read-only access from any IP address.

snmp-server community mystring RO

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required