hit counter script

Configuring Event Snmp Notification - Cisco Catalyst 2960 series Configuration Manual

Consolidated platform configuration guide, ios release 15.2(4)e
Hide thumbs Also See for Catalyst 2960 series:
Table of Contents

Advertisement

How to Write EEM Policies Using the Cisco IOS CLI
Example:
Device# show event manager policy registered time-ordered
No.
Type
Event Type
1
applet
snmp
oid {1.3.6.1.4.1.9.9.48.1.1.1.6.1} get-type exact entry-op lt entry-val
{5120000} poll-interval 90
action 1.0 syslog priority critical msg "Memory exhausted; current available memory
is $_snmp_oid_val bytes"
action 2.0 force-switchover
2
applet
syslog
pattern {.*UPDOWN.*Ethernet1/0.*}
action 1.0 cns-event msg "Interface state change: $_syslog_msg"
Use this command with the name-ordered keyword to display information about currently registered policies sorted by
name, for example:
Example:
Device# show event manager policy registered name-ordered
No.
Type
Event Type
1
applet
syslog
pattern {.*UPDOWN.*Ethernet1/0.*}
action 1.0 cns-event msg "Interface state change: $_syslog_msg"
2
applet
snmp
oid {1.3.6.1.4.1.9.9.48.1.1.1.6.1} get-type exact entry-op lt entry-val
{5120000} poll-interval 90
action 1.0 syslog priority critical msg "Memory exhausted; current available memory
is $_snmp_oid_val bytes"
action 2.0 force-switchover
Use this command with the event-typekeyword to display information about currently registered policies for the event
type specified in the event-name argument, for example:
Example:
Device# show event manager policy registered event-type syslog
No.
Type
Event Type
1
applet
syslog
pattern {.*UPDOWN.*Ethernet1/0.*}
action 1.0 cns-event msg "Interface state change: $_syslog_msg"

Configuring Event SNMP Notification

Perform this task to configure SNMP notifications.
Before You Begin
• SNMP event manager must be configured using the snmp-server manager command.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1708
Time
Thu May30 05:57:16 2004 memory-fail
Wed Jul16 00:05:17 2004 intf-down
Time Registered
Wed Jul16
00:05:17 2004 intf-down
Thu May30 05:57:16 2004
Time Registered
Wed Jul16
00:05:17 2004 intf-down
Registered Name
Name
memory-fail
Name

Advertisement

Table of Contents
loading

Table of Contents