Cisco WS-C4003 Software Guide - Page 308
Configuring SNMPv1 and SNMPv2c from the CLI
View all Cisco WS-C4003 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 308 highlights
Configuring SNMPv1 and SNMPv2c from the CLI Chapter 23 Configuring SNMP Configuring SNMPv1 and SNMPv2c from the CLI Note This section provides basic SNMPv1 and SNMPv2c configuration information. For detailed information on the SNMP commands supported by the Catalyst enterprise LAN switches, refer to the Command Reference-Catalyst 4000 Family, Catalyst 2948G, and Catalyst 2980G Switches. Note For enhanced SNMP features in software release 7.5(1), see the "Understanding SNMPv3" section on page 23-7. To configure SNMPv1 and SNMPv2c from the command-line interface (CLI), perform this task in privileged mode: Step 1 Step 2 Step 3 Step 4 Task Command Define the SNMP community strings for each access type. set snmp community read-only community_string set snmp community read-write community_string set snmp community read-write-all community_string Assign a trap receiver and community. You set snmp trap rcvr_address rcvr_community [port can specify up to ten trap receivers. rcvr_port] [owner rcvr_owner] [index rcvr_index] 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] 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 read-only read-write Community-String Everyone Administrators 23-6 Software Configuration Guide-Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4 78-12647-02