Cisco Cisco IOS Software Release 12.2(25)S
Embedded Event Manager 2.0
How to Configure Embedded Event Manager 2.0
8
Cisco IOS Release 12.2(25)S
EEM Policies
EEM offers the ability to monitor events and take informational or corrective action when the monitored
events occur or when a threshold is reached. An EEM policy is an entity that defines an event and the
actions to be taken when that event occurs. There are two types of EEM policies: an applet or a script.
An applet is a simple form of policy that is defined within the CLI configuration. A script is a form of
policy that is written in Tcl.
events occur or when a threshold is reached. An EEM policy is an entity that defines an event and the
actions to be taken when that event occurs. There are two types of EEM policies: an applet or a script.
An applet is a simple form of policy that is defined within the CLI configuration. A script is a form of
policy that is written in Tcl.
SUMMARY STEPS
1.
enable
2.
configure terminal
3.
event manager applet applet-name
4.
event snmp oid oid-value get-type {exact | next} entry-op operator entry-val entry-value
[exit-comb {or | and}] [exit-op operator] [exit-val exit-value] [exit-time exit-time-value]
poll-interval poll-int-value
[exit-comb {or | and}] [exit-op operator] [exit-val exit-value] [exit-time exit-time-value]
poll-interval poll-int-value
5.
action label syslog [priority priority-level] msg msg-text
6.
Repeat
.
7.
end
DETAILED STEPS
Command or Action
Purpose
Step 1
enable
Example:
Router> enable
Enables privileged EXEC mode.
•
Enter your password if prompted.
Step 2
configure
terminal
Example:
Router# configure terminal
Enters global configuration mode.
Step 3
event manager applet
applet-name
Example:
Router(config)# event manager applet
memory-fail
Registers the applet with the Embedded Event Manager
(EEM) and enters applet configuration mode.
(EEM) and enters applet configuration mode.
Step 4
event snmp oid
oid-value get-type {exact |
next
} entry-op operator entry-val entry-value
[exit-comb {or | and}] [exit-op operator]
[exit-val exit-value] [exit-time
exit-time-value] poll-interval poll-int-value
Example:
Router(config-applet)# event 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 10
Specifies the event criteria that cause the EEM applet to run.
•
In this example, an EEM event is triggered when one of
the fields specified by an SNMP object ID crosses a
defined threshold.
the fields specified by an SNMP object ID crosses a
defined threshold.
•
Exit criteria are optional, and if not specified, event
monitoring is reenabled immediately.
monitoring is reenabled immediately.