
Embedded Event Manager Callback Scripts
EEM callback scripts are entered as a result of an EEM event being raised for a previously registered EEM
event that specifies the name of this script in the eem_handler_spec.
When an EEM callback script exits, it is responsible for setting a return code that is used to tell the EEM
whether or not to run the default action for this EEM event (if any). If multiple event handlers are scheduled
for a given event, the return code from the previous handler is passed into the next handler, which can leave
the value as is or update it.
EEM callback scripts are free to use any of the EEM script services listed in
Manager Tcl Command Extension Categories, on page 46
, except for the
eem event register
keyword,
which is not allowed in an EEM callback script.
Note
Embedded Event Manager Policy Tcl Command Extension Categories
This table lists the different categories of EEM policy Tcl command extensions.
The Tcl command extensions available in each of these categories for use in all EEM policies are described
in later sections in this document.
Note
Table 3: Embedded Event Manager Tcl Command Extension Categories
Definition
Category
These Tcl command extensions are represented by
the
event_register
_xxx family of event-specific
commands. There is a separate event information Tcl
command extension in this category as well:
event_reqinfo
. This is the command used in policies
to query the EEM for information about an event.
There is also an EEM event publish Tcl command
extension
event_publish
that publishes an
application-specific event.
EEM event Tcl command extensions(three types:
event information, event registration, and event
publish)
These Tcl command extensions (for example,
action_syslog
) are used by policies to respond to or
recover from an event or fault. In addition to these
extensions, developers can use the Tcl language to
implement any action desired.
EEM action Tcl command extensions
These Tcl command extensions are used to retrieve,
save, set, or modify application information, counters,
or timers.
EEM utility Tcl command extensions
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
46
Configuring and Managing Embedded Event Manager Policies
Embedded Event Manager Scripts and the Scripting Interface (Tcl)