® Embedded Event Manager (EEM) is a unique subsystem within Cisco IOS Software. EEM is a powerful and flexible tool to automate tasks and customize the behavior of Cisco IOS Software and the operation of the device. Customers can use EEM to create and run programs or scripts directly on a router or switch. The scripts are referred to as EEM policies and can be programmed using a simple Command-Line-Interface (CLI)-based interface or using a scripting language called Tool Command Language (Tcl). EEM allows customers to harness the significant intelligence within Cisco IOS Software to respond to real-time events, automate tasks, create customized commands, and take local automated action based on conditions detected by the Cisco IOS Software itself.
The latest version of the EEM subsystem within Cisco IOS Software is EEM v4.0.
The applications are endless and only limited by your imagination.
Suppose you want to automatically configure a switch interface depending on the device, for example, an IP phone that is connected to a port or interface. A script can be devised that is triggered on the interface up condition and determines the details of the connected device. Upon discovery and verification of a newly connected IP phone, the port can be automatically configured according to prescribed parameters.
Another example might be to react to an abnormal condition, such as the detection of a high error rate on an interface by forcing transit traffic over a more stable and error-free path. EEM can watch for the increased error rate and trigger a policy into action. The policy could notify network operations personnel and take immediate action to reroute traffic.
A third example might be to collect detailed data upon detection of a specific failure condition, in order to gather information that can allow the root cause of the problem to be determined faster, leading to a lower mean time to repair and higher availability. EEM could detect a specific syslog message and trigger a script to collect detailed data using a series of show commands. After automatically collecting the data, it can be saved to flash memory or sent to an external management system or by email to a network operator.
The control is in the network administrator's hands. You control what events to detect and what actions to take. EEM is optional-it is up to the network administrator if and when it should be used, and only takes the actions you program it to take.
Features and Benefits
Cisco IOS Embedded Event Manager provides a level of embedded systems management not previously seen in Cisco IOS Software. More than 20 event detectors provide an extensive set of conditions that can be monitored and defined as event triggers. The system is extensible with new capabilities, and further subsystem integration is planned. The feature is mostly product independent and available across a wide range of Cisco
® products. Each new version of the EEM feature introduces new event detectors or new capabilities. Consult the Cisco documentation for detailed information.
EEM Version 4.0
The latest version of the EEM subsystem is EEM 4.0. See Table 1 for a list of features and benefits. In this release, we introduced the following enhancements related to EEM security, resource management, event detection and policy execution capabilities:
• EEM Email Action Enhancements
– Custom TCP port for SMTP mail actions
– Tcl-based and CLI-based EEM policies to establish secured SMTP connections with public email servers using Transport Layer Security (TLS)
• EEM Security Enhancements
– Tcl policy checksum integrity check (MD5/SHA-1)
– 3rd party digital signature support
– Tcl policy owner identification
– Registration of remote Tcl policies
• EEM Resource Management
– Manually set CPU, memory, and EEM queue thresholds
– Blocks new policy execution when system is already busy with existing functionalities
• EEM Event Detector Enhancements
– IPv6 routing event detector support
– Syslog event detector performance enhancement
– New environment variables for CLI event detector
• EEM Usability Enhancement
– Capability to report policy execution statistics including number of times a policy is triggered, dropped, length of policy execution time, and next policy execution for timed events
– Powerful file operation support for applet policies
Table 1. Features and Benefits
Extensible and powerful subsystem architecture
The EEM subsystem is designed with modularity in mind. It consists of event detectors, an event manager server, and action routines called policies.
An interface to the Cisco IOS Software CLI to allow automated commands and access to any information that can be displayed. Includes support for XML programmable interface from within EEM policies.
EEM policies are scheduled one at a time or concurrently according to the number of threads configured and provide an enhanced, class-based scheduling option for fine control over policy execution.
Policies can invoke a number of built-in actions for easy automation.
CLI command match and run with even more capabilities for creating your own commands
Custom counter events
Generic Online Diagnostics (GOLD) event detection
Detects 802.1x and MAB identity events
Interface counters and events
Tighter integration with the service-level agreement SLA monitoring and measurement subsystem. Easy event triggers and automation when conditions are not satisfactory.
Memory Threshold (deprecated)
Detects memory resource-related events
Detects Cisco Discovery Protocol and LLDP events
Event triggers based on traffic flow. Many uses from capacity planning to Denial of Service (DoS) alert and automated actions.
None (by run command)
Allows execution of an EEM policy by direct command, event manager run
Integration with Enhanced Object Tracking (EOT).
Card online insertion and removal detection
Remote Procedure Call
Allows for authorized programs outside of the device to invoke specific device-resident, embedded policies by sending a Simple Object Access Protocol (SOAP) request over a Secure Shell (SSH) Protocol version 2 connection
Integration with Embedded Resource Manager; supersedes the Memory Threshold event detector.
Cisco IOS Embedded Event Manager is a primarily product-independent software feature consisting of a series of event detectors, an Embedded Event Manager server, and interfaces to allow action routines called policies to be invoked. There are also internal application programming interfaces for other Cisco IOS Software subsystems to take advantage of the EEM subsystem. The diagram in Figure 1 illustrates the EEM components.
Figure 1. EEM Architecture
Notice there are two types of EEM policies:
• Applet policies: Easy-to-use interface; defined using the configuration CLI
• Tcl policies: More flexible and extensive capabilities; defined using the Tcl programming language
Once one or more policies are defined, the event detector software will watch for the conditions that match those defined by the policy. When a condition occurs, the event is passed to the event manager server. The server then invokes any policy that has registered for that particular event. The actions defined within the policy are then carried out.
Each type of event has specific options, parameters, and detailed information that is available to the policy when it is invoked. All of these details are described in the Cisco IOS Software documentation.
Please use the Cisco IOS Software Feature Navigator application on Cisco.com to check the latest information on software and product availability. Go to:
Table 2 includes the EEM feature availability information.
Table 2. Feature Specifications
EEM is available for the Catalyst® 6500 Series Switches, Cisco Integrated Services Routers, Cisco 7200 Series Routers, Cisco 7300 Series Routers, Cisco 7600 Series Routers, and Cisco 10000 Series Routers; EEM is also available for the Catalyst 4500 Series Switches and the Catalyst 3700 Series Switches and the ASR-1000 Series Routers. Please refer to the Cisco IOS Software Feature Navigator for the latest device support information.
EEM is available in Cisco IOS Software Release 12.2SX, 12.2SR, 12.2SB, 12.4, and 12.4T, 15.0M, 12.2SG, 12.2SE, Cisco IOS XE, and future versions. EEM functionality is also included in Cisco IOS XR and Cisco NX OS.
Some Cisco products require an enhanced feature set license to acquire support for EEM. Please refer to the Cisco IOS Software Feature Navigator for the latest packaging information.
The EEM software subsystem will consume CPU and memory resources in its operation. Tcl-based policies reside on flash memory and will take up space. Customers should examine the operation in their environment to make sure resources exist for their specific scenarios. Some basic guidelines are included in Table 3.
Table 3. System Requirements
Tcl-based policies are files stored on flash disk. The amount of space required depends on the size and number of policies and any programmed storage requirements.
CPU utilization requirements are solution dependent.
Each Tcl-based policy will use approximately 500 KB when initialized. Beyond that, utilization is specific to the policy's operational requirements.
A Tcl interpreter is included within Cisco IOS Software. The current version is Tcl 8.3.4.
Service and Support
Using the Cisco Lifecycle Services approach, Cisco and its partners provide a broad portfolio of end-to-end services and support that can help increase your network's business value and return on investment. This approach defines the minimum set of activities needed, by technology and by network complexity, to help you successfully deploy and operate Cisco technologies and optimize their performance throughout the lifecycle of your network.
Customers authorized for service and support may contact the Cisco Technical Assistance Center (TAC) for issues related to EEM. The TAC will resolve problems related to the operation of the EEM infrastructure. Help for script logic problems will be provided on a best-effort basis. There is also developer support service available for custom EEM policy development from Cisco Services.
More extensive script development services are available on request.