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.
-
viewview-name Optional.
view-nameis the name of a view defined with thesnmp-serverviewcommand.viewdefines 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
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access