ArticleslgStudy

science

Embedded event manager

Embedded event manager is a science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Embedded event manager rather than just read about it. In short: Cisco Embedded Event Manager (EEM) is a feature included in Cisco's IOS operating system (and some other Cisco OSes such as IOS-XR, IOS-XE, and NX-OS) that allow programmability and automation capabilities inside the device. EEM allows the behavior of a Cisco device to adapt to specific user requirements by allowing scripting, thresholding, proactive actions, data collection and event management inside the Cisco dev…

Key takeaways

  • Embedded event manager belongs to science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Embedded event manager to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Embedded event manager from memory before moving on to harder problems.

Reference excerpt

Cisco Embedded Event Manager (EEM) is a feature included in Cisco's IOS operating system (and some other Cisco OSes such as IOS-XR, IOS-XE, and NX-OS) that allow programmability and automation capabilities inside the device. EEM allows the behavior of a Cisco device to adapt to specific user requirements by allowing scripting, thresholding, proactive actions, data collection and event management inside the Cisco device itself. Using EEM, problems can be identified and resolved automatically in advance by setting event triggers (called Event Detectors) to watch for specific types of situations or thresholds, or run a set of actions periodically.

Cisco embedded management family EEM is a member of a family of embedded management technologies in Cisco IOS including SNMP, NetFlow, IP SLA, Web Services Management Agent, Syslog, ESM (Embedded Syslog Manager), ERM (Embedded Resource Manager), EMM (Embedded Menu Manager), Tcl and Service Diagnostics. When a situation is detected by EEM, it uses policies to invoke actions based on the type of event and the configured policy. EEM currently supports three different types of programming actions (see Programming Capabilities below).

About With EEM, users can capture complex network events and run sophisticated programs on Cisco devices. The version of EEM on most Cisco devices is version 2.1, or version is 3.0 which was introduced in IOS 12.4(22)T. The latest version is version 4.0, which was released November 2011, targeting IOS releases 12.2SR, 12.2SB, 12.4, and 12.4T, 15.0M, 12.2SG, 12.2SE, Cisco IOS XE, and future versions. EEM consists of three areas; event detectors, policies and programming languages.

Event detectors The brains of EEM are event detectors. These event detectors are built-in capabilities to watch for specific situations or conditions. Newer versions of EEM have more event detectors than older ones. Typical of EEM Event Detectors:

SNMP OIR (Online Insertion and Removal) CLI command-line interface Syslog XML-RPC IP SLAs NetFlow Application specific event Config change Interface counters Redundancy framework SNMP notification (i.e. when the device receives a trap) Resource Timer Timer subscriber IOS Process Counter GOLD (Generic OnLine Diagnostics) Environmental Routing Enhanced Object Tracking (EOT) None (launch the event manually)

Policies Policies determine what is run when an event is detected. Policies save users from having to enumerate an action for every possible event.

Programming capabilities EEM supports three methods of programmability and scripting.

Applets - these allow CLI to be run when a certain set of conditions occurs Tcl - when more complex programs need to be built, EEM supports Tcl (Tool Command Language) development IOS.sh - newer versions of IOS support IOS.sh (IOS shell) macros similar to Linux bash shell

Version comparison

Example There are four steps to setting up an EEM system. In this example, we will get an email of the status of the system when the HSRP state changes. This example defines an applet action rather than Tcl.

event manager environment _email_server 172.27.121.177 <-- define the environment variable event manager environment _email_to EMAIL_ADDRESS <-- define the address to which email will be sent event manager environment _email_from EMAIL_ADDRESS <-- define the address from which the email will be sent event manager applet email_hsrp_state_change <-- set up the policy event syslog pattern ".*%HSRP-5-STATECHANGE.*" <-- define the trigger action 1.0 info type routername <-- obtain the current device hostname and place it in the $_info_routername variable action 1.1 cli command "enable" <-- actions such as writing to flash, making config changes, etc. require enable privilege append flash:hsrp_state_change.txt" <-- write some debugging output to flash flash:append hsrp_state_change.txt" <-- more debugging output action 1.5 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "HSRP_STATE_CHANGE Alert from $_info_routername: $_syslog_msg" body "$_cli_result" <-- send an email with the result of the last CLI command in the body of the message

Network management software and tools support Network management Software utilizing EEM include:

CiscoWorks and CiscoWorks LMS Progrizon: EEM Deployment Application Suite and EEM Policy Builder Archived 2011-07-15 at the Wayback Machine Davra Networks: EEM Solutions Archived 2010-10-17 at the Wayback Machine

References

Further reading Blair, Ray; Durai, Arvind; Lautmann, John (2010). "Embedded Event Manager (EEM)". TcL Scripting for Cisco IOS. Networking Technology Series. Cisco Press. ISBN 9781587059452.

External links EEM Data Sheet Go EEM EEM Scripting Community Embedded Event Manager Configuration Guide

EEM-Based Solution Development Progrizon, Inc. EEM Solution Development and Consulting Archived 2011-07-15 at the Wayback Machine

Training Progrizon, Inc. Training Archived 2011-07-15 at the Wayback Machine Cisco IOS Automation and Customization (CIOSC) Advanced IOS Customization using EEM (ACEEM) "Cisco Embedded Event Manager (EEM)". aboutnetworks.net.

Worked examples

Example 1 — a first encounter with Embedded event manager

Start with the simplest possible case. Write down what Embedded event manager claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Embedded event manager before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Embedded event manager ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Embedded event manager

In research
Embedded event manager appears in science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Embedded event manager in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Embedded event manager is common in secondary-school and first-year university syllabi. It links to neighbouring topics Cisco Systems, so understanding it makes those chapters shorter.
In everyday life
Look for Embedded event manager outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Embedded event manager” →

How to study Embedded event manager in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Embedded event manager means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Embedded event manager out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Embedded event manager in simple terms?

Cisco Embedded Event Manager (EEM) is a feature included in Cisco's IOS operating system (and some other Cisco OSes such as IOS-XR, IOS-XE, and NX-OS) that allow programmability and automation capabilities inside the device. EEM allows the behavior of a Cisco device to adapt to specific user requir…

Why does Embedded event manager matter?

Because it connects several science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Embedded event manager?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Embedded event manager.

Tags

  • Cisco Systems

Keep exploring