|
|
This chapter describes how to configure the Simple Network Management Protocol (SNMP) on the Catalyst enterprise LAN switches.
![]() |
Note For complete syntax and usage information for the commands used in this chapter, refer to the Command Reference publication for your switch. |
This chapter consists of these sections:
The components of SNMP network management fall into three categories:
![]() |
Note An SNMP management application, together with the computer it runs on, is called a network management system (NMS). |
SNMP network management uses these SNMP agent functions:
![]() |
Note The community string definitions on your NMS must match at least one of the three community string definitions on the switch. |
The Catalyst enterprise LAN switches are managed devices that support SNMP network management with the following features:
![]() |
Note For more information about MIBs, refer to the Enterprise MIB User Quick Reference on Cisco Connection Online (http://www.cisco.com). |
Table 25-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 an Network Management System (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.
![]() |
Note This section provides very basic SNMP configuration information. For detailed information on the SNMP commands supported by the Catalyst enterprise LAN switches, refer to the Command Reference publication for your switch. |
To configure SNMP from the command-line interface (CLI), perform this task in privileged mode:
| Task | Command | |
|---|---|---|
Step 1 | 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)
![]() |
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). |
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: Wed Mar 22 12:35:12 PST 2000
Copyright 1989 - 2000©Cisco Systems Inc.