•
Defining the event detector options associated with logging and responding to the event.
•
Choosing the actions to be followed when the event occurs.
Cisco provides enhancements to Tcl in the form of keyword extensions that facilitate the development of
EEM policies. The main categories of keywords identify the detected event, the subsequent action, utility
information, counter values, and system information. For more details about writing EEM policies using Tcl,
see the
“
Writing Embedded Event Manager Policies Using Tcl
”
module.
Embedded Event Manager Built-In Environment Variables Used in EEM Applets
EEM built-in environment variables are a subset of the Cisco-defined environment variables and the built-in
variables are available to EEM applets only. The built-in variables can be read-only or can be read and write
and these variables may apply to one specific event detector or to all event detectors. The table below lists
the Cisco built-in environment variables that are read-only alphabetically by event detector and subevent.
Table 159: EEM Built-In Environment Variables (Read Only)
Description
Environment Variable
All Events
Unique number that indicates the ID for this published
event. Multiple policies may be run for the same
event, and each policy will have the same event_id.
_event_id
Type of event.
_event_type
An ASCII string identifier of the event type that
triggered the event.
_event_type_string
The time, in seconds and milliseconds, at which the
event was published to the EEM.
_event_pub_sec _event_pub_msec
The severity of the event.
_event_severity
Application-Specific Event Detector
The event application component identifier.
_application_component_id
The value of an environment variable, character text,
or a combination of the two to be passed to an
application-specific event when the event is published.
_application_data1
The value of an environment variable, character text,
or a combination of the two to be passed to an
application-specific event when the event is published.
_application_data2
The value of an environment variable, character text,
or a combination of the two to be passed to an
application-specific event when the event is published.
_application_data3
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1685
Information About Writing EEM Policies Using the Cisco IOS CLI
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......