|
|
This chapter describes how to configure the Simple Network Management Protocol (SNMP) on the Catalyst 5000, 4000, 2948G, and 2926G series switches.
This chapter consists of these sections:
The components of SNMP network management fall into three categories:
SNMP network management uses these SNMP agent functions:
The Catalyst 5000, 4000, 2948G, and 2926G series switches are managed devices that support SNMP network management with the following features:
Table 31-1 describes the SNMP default configuration.
| Feature | Default Setting |
|---|---|
SNMP community strings |
|
SNMP trap receiver | None configured |
SNMP traps | None enabled |
To configure SNMP from a NMS, refer to the NMS documentation (see the "Using CiscoWorks2000" section).
The switch supports up to 20 trap receivers through the RMON2 trap destination table. Configure the RMON2 trap destination table from the NMS.
To configure SNMP from the command-line interface (CLI), perform this task in privileged mode:
| Task | Command |
|---|---|
Step 1 Define the SNMP community strings for each access type. | set snmp community read-only community_string |
Step 2 Assign a trap receiver and community. You can specify up to ten trap receivers. | set snmp trap rcvr_address rcvr_community |
Step 3 Specify the SNMP traps to send to the trap receiver. | set snmp trap enable [all | module | chassis | bridge | repeater | auth | vtp | ippermit | vmps | config | entity | stpx] |
Step 4 Verify the SNMP configuration. | show snmp |
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)
CiscoWorks2000 is a family of Web-based and management platform-independent products for managing Cisco enterprise networks and devices. CiscoWorks2000 includes Resource Manager Essentials and CWSI Campus, which allow you to deploy, configure, monitor, manage, and troubleshoot a switched internetwork. For more information, see the following publications:
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Mon Jul 19 12:51:24 PDT 1999
Copyright 1989-1999©Cisco Systems Inc.