EasyManuals Logo

Cisco Catalyst 2960 Series User Manual

Cisco Catalyst 2960 Series
2288 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1793 background imageLoading...
Page #1793 background image
PurposeCommand or Action
Specifies the event criteria for an EEM applet that is
run by matching a Cisco IOS command-line interface
(CLI) command.
event [tag event-tag] cli pattern regular-expression sync {yes
| no skip {yes | no}} [occurs num-occurrences] [period
period-value] [maxrun maxruntime-number]
Example:
Device(config-applet)# event tag 1.0 cli pattern
Step 4
show bgp all
sync yes occurs 32 period 60 maxrun 60
Specifies the complex event configuration parameters
for an EEM applet.
trigger [occurs occurs-value] [period period-value]
[period-start period-start-value] [delay delay-value]
Example:
Device(config-applet)# trigger occurs 1 period-start
0 8 * * 1-5 period 60
Step 5
Specifies a complex event correlation in the trigger
mode for an EEM applet.
correlate {event event-tag | track object-number}
[boolean-operator event event-tag]
Step 6
Example:
Device(config-applet)# correlate event 1.0 or event
2.0
When "and" is used to group events such as
traps or syslog messages, then the default
trigger occurrence window is three minutes.
Note
Specifies up to eight attribute statements to build a
complex event for an EEM applet.
attribute tag event-tag [occurs occurs-value]
Example:
Device(config-applet)# attribute tag 1.0 occurs 1
Step 7
Specifies the action of executing a CLI command when
an EEM applet is triggered.
action label cli command cli-string
Example:
Device(config-applet)# action 1.0 cli command show
pattern
Step 8
Examples
In the following example, applet is run if the show bgp all CLI command and any syslog message that contains
the string "COUNT occurred within a period 60 seconds.
event manager applet delay_50
event tag 1.0 cli pattern "show bgp all" sync yes occurs 32 period 60 maxrun 60
event tag 2.0 syslog pattern "COUNT"
trigger occurs 1 delay 50
correlate event 1.0 or event 2.0
attribute tag 1.0 occurs 1
attribute tag 2.0 occurs 1
action 1.0 cli command "show pattern"
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1711
How to Write EEM Policies Using the Cisco IOS CLI

Table of Contents

Other manuals for Cisco Catalyst 2960 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Cisco Catalyst 2960 Series and is the answer not in the manual?

Cisco Catalyst 2960 Series Specifications

General IconGeneral
LayerLayer 2
Power over Ethernet (PoE)Available on some models
RAM128 MB
Flash Memory32 MB
MAC Address Table Size8000
Operating Temperature0°C to 45°C (32 to 113°F)
Ports24 or 48 x 10/100/1000

Related product manuals