Cisco WS-C2950SX-48-SI Configuration Manual page 375

Catalyst 4500 series switches
Hide thumbs Also See for WS-C2950SX-48-SI:
Table of Contents

Advertisement

Chapter 24
Configuring SNMP
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
read-write-all
Trap-Rec-Address
----------------------------------------
172.16.10.10
172.16.10.20
Console> (enable)
To disable access for an SNMP community, set the community string for that community to the null
Note
string (do not enter a value for the community string).
78-15486-01
Disabled
Extended RMON module is not present
Community-String
--------------------
Everyone
Administrators
Root
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
Configuring SNMPv1 and SNMPv2c from the CLI
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
Trap-Rec-Community
--------------------
read-write
read-write-all
Release 8.1
24-7

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents