47-12
Catalyst 6500 Series Switch Software Configuration Guide—Release 8.7
OL-8978-04
Chapter 47 Configuring SNMP
SNMPv1 and SNMPv2c Enhancements in Software Release 7.5(1)
This example shows how to define the community strings, assign a trap receiver, and specify which traps
to send to the trap receiver:
Console> (enable)
set snmp community read-only Everyone
SNMP read-only community string set to 'Everyone'.
Console> (enable)
set snmp community read-write Administrators
SNMP read-write community string set to 'Administrators'.
Console> (enable)
set snmp community read-write-all Root
SNMP read-write-all community string set to 'Root'.
Console> (enable)
set snmp trap 172.16.10.10 read-write
SNMP trap receiver added.
Console> (enable)
set snmp trap 172.16.10.20 read-write-all
SNMP trap receiver added.
Console> (enable)
set snmp trap enable all
All SNMP traps enabled.
Console> (enable)
show snmp
RMON: Disabled
Extended RMON: Extended RMON module is not present
Traps Enabled:
Port,Module,Chassis,Bridge,Repeater,Vtp,Auth,ippermit,Vmps,config,entity,stpx
Port Traps Enabled: 1/1-2,4/1-48,5/1
Community-Access Community-String
---------------- --------------------
read-only Everyone
read-write Administrators
read-write-all Root
Trap-Rec-Address Trap-Rec-Community
---------------------------------------- --------------------
172.16.10.10 read-write
172.16.10.20 read-write-all
Console> (enable)
Note
To disable access for an SNMP community, set the community string for that community to the null
string (do not enter a value for the community string).
SNMPv1 and SNMPv2c Enhancements in Software
Release 7.5(1)
These sections describe the enhancements that have been added to software release 7.5(1):
•
Setting Multiple SNMP Community Strings, page 47-13
•
Clearing the SNMP Community Strings, page 47-14
•
Specifying the Access Numbers for Hosts, page 47-14
•
Clearing the IP Addresses Associated with Access Numbers, page 47-15
•
Specifying, Displaying, and Clearing an Interface Alias, page 47-16