Name
snmp-server community — global
Synopsis
snmp-server communitystring
[viewview-name
] {ro | rw} [access-list
] no snmp-server communitystring
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 thesnmp-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
Get CISCO IOS in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.