33-5
Cisco Catalyst Blade Switch 3120 for HP Software Configuration Guide
OL-12247-01
Chapter 33 Configuring Embedded Event Manager
Configuring Embedded Event Manager
•
Cisco built-in variables (available in EEM applets)
Defined by Cisco and can be read-only or read-write. The read-only variables are set by the system
before an applet starts to execute. The single read-write variable, _exit_status, allows you to set the
exit status for policies triggered from synchronous events.
Cisco-defined environment variables and Cisco system-defined environment variables might apply to
one specific event detector or to all event detectors. Environment variables that are user-defined or
defined by Cisco in a sample policy are set by using the event manager environment global
configuration command. You must defined the variables in the EEM policy before you register the
policy.
For information about the environmental variables that EEM supports, see the Cisco IOS Network
Management Configuration Guide, Release 12.4T.
Configuring Embedded Event Manager
These sections contain this configuration information:
•
Registering and Defining an Embedded Event Manager Applet, page 33-5
•
Registering and Defining an Embedded Event Manager TCL Script, page 33-6
For complete information about configuring embedded event manager, see the Cisco IOS Network
Management Configuration Guide, Release 12.4T.
Registering and Defining an Embedded Event Manager Applet
Beginning in privileged EXEC mode, perform this task to register an applet with EEM and to define the
EEM applet using the event applet and action applet configuration commands.
Note
Only one event applet command is allowed in an EEM applet. Multiple action applet commands are
permitted. If you do not specify the no event and no action commands, the applet is removed when you
exit configuration mode.
Command
Purpose
Step 1
configure terminal
Enter global configuration mode.
Step 2
event manager applet applet-name
Register the applet with EEM and enter applet configuration mode.
Step 3
event snmp oid oid-value get-type
{exact | next} entry-op {eq | ge | gt | le |
lt | ne} entry-val entry-val [exit-comb
{or | and}] [exit-op {eq | ge | gt | le | lt |
ne}] [exit-val exit-val] [exit-time
exit-time-val] poll-interval poll-int-val
Specify the event criteria that causes the EEM applet to run.
(Optional) Exit criteria. If exit criteria are not specified, event monitoring
is re-enabled immediately.