Configuring Snmpv1 And Snmpv2C From The Cli - Cisco WS-C4003 - Catalyst 4000 Chassis Switch Software Configuration Manual

Software guide
Table of Contents

Advertisement

Configuring SNMPv1 and SNMPv2c from the CLI

Configuring SNMPv1 and SNMPv2c from the CLI
This section provides basic SNMPv1 and SNMPv2c configuration information. For detailed information
Note
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
page
To configure SNMPv1 and SNMPv2c from the command-line interface (CLI), perform this task in
privileged mode:
Task
Step 1
Define the SNMP community strings for
each access type.
Step 2
Assign a trap receiver and community. You
can specify up to ten trap receivers.
Step 3
Specify the SNMP traps to send to the trap
receiver.
Step 4
Verify the SNMP configuration.
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:
Extended RMON:
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
Software Configuration Guide—Catalyst 4000 Family, Catalyst 2948G, Catalyst 2980G, Releases 6.3 and 6.4
23-6
23-7.
Community-String
--------------------
Everyone
Administrators
Command
set snmp community read-only community_string
set snmp community read-write community_string
set snmp community read-write-all community_string
set snmp trap rcvr_address rcvr_community [port
rcvr_port] [owner rcvr_owner] [index rcvr_index]
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]
show snmp
Disabled
Extended RMON module is not present
Chapter 23
Configuring SNMP
"Understanding SNMPv3" section on
78-12647-02

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 4000 seriesCatalyst 2948gCatalyst 2980g

Table of Contents