Snmp Example - Cisco Catalyst 2000 Configuration Handbook

Catalyst series lan switching
Table of Contents

Advertisement

c. (Optional) Define an RMON alarm:
(global) rmon alarm number object interval {delta | absolute} rising-
threshold rise [event] falling-threshold fall [event] [owner string]
An alarm indexed by number (1 to 65535) is configured to monitor a specific
MIB variable object. The object is given as a dotted-decimal value, in the form of
entry.integer.instance. The interval field specifies the number of seconds (1 to
4294967295) that the alarm monitors the object. The delta keyword watches a
change between MIB variables, whereas absolute watches a MIB variable direct-
ly. You can configure the alarm to test the object against a rising-threshold and a
falling-threshold, where rise and fall are the threshold values that trigger the
alarm. The event field specifies an event number in an event table to trigger for
the rising and falling thresholds. An optional owner text string can be given, as
the owner of the alarm.
d. (Optional) Define an RMON event:
(global) rmon event number [description string] [owner name] [trap
community] [log]
An RMON event is identified by an arbitrary number (1 to 65535). The
description keyword gives the event a descriptive string (text string). An option-
al event owner can be assigned as name (text string). If the trap keyword is
given, an SNMP trap is generated with the community string (text string). The
log keyword causes the event to generate an RMON log entry on the switch.

SNMP Example

A switch is configured for SNMP, using community public for read-only access and com-
munity noc-team for read-write access. SNMP access is limited to any host in the
172.30.0.0 network for read-only, and to network management hosts 172.30.5.91 and
172.30.5.95 for read-write access. (This is possible with access lists.)
SNMP traps are sent to an SNMP agent machine at 172.30.5.93, using community string
nms. All possible traps are sent, except for switch configuration change traps. Also
SNMP link up/down traps are disabled for port 3/1:
(global) snmp-server contact John Doe, Network Operations
(global) snmp-server location Building A, closet 123
(global) snmp-server community public ro 5
(global) snmp-server community noc-team rw 6
(global) snmp-server host 172.30.5.93 traps nms
(global) snmp-server enable traps
(global) no snmp-server enable config
(global) access-list 5 permit 172.30.0.0 0.0.255.255
Chapter 12: Switch Management 205

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents