Configuring Community Strings
You use the SNMP community string to define the relationship between the SNMP manager and the agent.
The community string acts like a password to permit access to the agent on the switch. Optionally, you can
specify one or more of these characteristics associated with the string:
•
An access list of IP addresses of the SNMP managers that are permitted to use the community string to
gain access to the agent
•
A MIB view, which defines the subset of all MIB objects accessible to the given community
•
Read and write or read-only permission for the MIB objects accessible to the community
Follow these steps to configure a community string on the switch.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
snmp-server community string
[
view view-name
] [
ro
|
rw
] [
access-list-number
]
4.
access-list access-list-number
{
deny
|
permit
}
source
[
source-wildcard
]
5.
end
6.
show running-config
7.
copy running-config startup-config
DETAILED STEPS
Purpose
Command or Action
Enables privileged EXEC mode. Enter your password if prompted.
enable
Step 1
Example:
Switch>
enable
Enters the global configuration mode.
configure terminal
Example:
Switch#
configure terminal
Step 2
Configures the community string.
snmp-server community string
[
view
view-name
] [
ro
|
rw
] [
access-list-number
]
Step 3
The @ symbol is used for delimiting the context information. Avoid
using the @ symbol as part of the SNMP community string when
configuring this command.
Note
Example:
Switch(config)#
snmp-server
community comaccess ro 4
•
For
string
, specify a string that acts like a password and permits access
to the SNMP protocol. You can configure one or more community strings
of any length.
•
(Optional) For
view
, specify the view record accessible to the community.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
454
How to Configure SNMP
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......