Embedded Event Manager Actions; Embedded Event Manager Policies; Embedded Event Manager Environment Variables - Cisco ME 3400 Software Configuration Manual

Ethernet access switch
Hide thumbs Also See for ME 3400:
Table of Contents

Advertisement

Understanding Embedded Event Manager

Embedded Event Manager Actions

These actions occur in response to an event:

Embedded Event Manager Policies

EEM can monitor events and provide information, or take corrective action when the monitored events
occur or 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 policy that is defined
within the CLI configuration. It is a concise method for defining event screening criteria and the actions to
be taken when that event occurs. Scripts are defined on the networking device by using an ASCII editor.
The script, which can be a bytecode (.tbc) and text (.tcl) script, is then copied to the networking device
and registered with EEM. You can also register multiple events in a .tcl file.
Cisco enhancements to TCL in the form of keyword extensions facilitate the development of EEM
policies. These keywords identify the detected event, the subsequent action, utility information, counter
values, and system information.
For complete information on configuring EEM policies and scripts, see the Cisco IOS Network Management
Configuration Guide, Release 12.4T.

Embedded Event Manager Environment Variables

EEM uses environment variables in EEM policies. These variables are defined in a EEM policy tool
command language (TCL) script by running a CLI command and the event manager environment
command.
User-defined variables
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.
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
30-4
Modifying a named counter.
Publishing an application-specific event.
Generating an SNMP trap.
Generating prioritized syslog messages.
Reloading the Cisco IOS software.
Defined by the user for a user-defined policy.
Cisco-defined variables
Defined by Cisco for a specific sample policy.
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.
Chapter 30
Configuring Embedded Event Manager
OL-9639-07

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents