Embedded Event Manager Callback Scripts; Embedded Event Manager Policy Tcl Command Extension Categories - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Embedded Event Manager Scripts and the Scripting Interface (Tcl)

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
Note
Manager Tcl Command Extension Categories, on page
which is not allowed in an EEM callback script.

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
Note
in later sections in this document.
Table 3: Embedded Event Manager Tcl Command Extension Categories
Category
EEM event Tcl command extensions(three types:
event information, event registration, and event
publish)
EEM action Tcl command extensions
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
Table 3: Embedded Event
46, except for the eem event register keyword,
Definition
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.
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.
These Tcl command extensions are used to retrieve,
save, set, or modify application information, counters,
or timers.

Advertisement

Table of Contents
loading

Table of Contents