
24-10
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2948G-GE-TX, and Catalyst 2980G Switches Software Configuration Guide—Release 8.2GLX
78-15908-01
Chapter 24 Configuring SNMP
Configuring SNMPv1 and SNMPv2c from the CLI
This example shows how to define 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)
The following sections describe enhancements that were added to software release 7.5(1).
Step 3
Specify the SNMP traps to send to the trap
receiver.
set snmp trap enable [all | auth | bridge | chassis |
config | entity | entityfru | envfan | envpower |
envshutdown | envtemp | flashinsert | flashremove |
ippermit | module | stpx | syslog | system | vlancreate |
vlandelete | vmps | vtp]
Step 4
Verify the SNMP configuration.
show snmp
Task
Command