30-4
Cisco ME 3400 Ethernet Access Switch Software Configuration Guide
OL-9639-07
Chapter 30 Configuring Embedded Event Manager
Understanding Embedded Event Manager
Embedded Event Manager Actions
These actions occur in response to an event:
•
Modifying a named counter.
•
Publishing an application-specific event.
•
Generating an SNMP trap.
•
Generating prioritized syslog messages.
•
Reloading the Cisco IOS software.
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
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.
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.
Содержание ME 3400 Series
Страница 40: ...Contents xl Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 ...
Страница 44: ...xliv Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 Preface ...
Страница 1138: ...Index IN 52 Cisco ME 3400 Ethernet Access Switch Software Configuration Guide OL 9639 07 ...