Embedded event manager: Difference between revisions

Content deleted Content added
Ahshabazz (talk | contribs)
According to cisco, EEM has release: 4.0 ( November 2011): ref: http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6815/datasheet_c78-692254.html
convert depreciated tt tag. Also fix missing opening/closing tt tag using AWB (10497)
Line 1:
Cisco '''Embedded Event Manager''' ('''EEM''') is a feature included in [[Cisco IOS|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.
 
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 [[Embedded_event_managerEmbedded event manager#Programming_CapabilitiesProgramming Capabilities|Programming Capabilities]] below).
 
==Cisco Embedded Management Family==
Line 161:
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 examples defines an applet action rather than Tcl.
 
# <tt>{{mono|event manager environment _email_server 172.27.121.177<tt>}} ''<span style="color:blue;">&lt;-- define the environment variable</span>''
# <tt>{{mono|event manager environment _email_to EMAIL_ADDRESS</tt>}} ''<span style="color:blue;">&lt;-- define the address to which email will be sent</span>''
# <tt>{{mono|event manager environment _email_from EMAIL_ADDRESS</tt>}} ''<span style="color:blue;">&lt;-- define the address from which the email will be sent</span>''
# <tt>{{mono|event manager applet email_hsrp_state_change</tt>}} ''<span style="color:blue;">&lt;-- set up the policy</span>''
# <tt>{{mono|event syslog pattern ".*%HSRP-5-STATECHANGE.*"</tt>}} ''<span style="color:blue;">&lt;-- define the trigger</span>''
# <tt>{{mono|action 1.0 info type routername</tt>}} ''<span style="color:blue;">&lt;-- obtain the current device hostname and place it in the $_info_routername variable</span>''
# <tt>{{mono|action 1.1 cli command "enable"</tt>}} ''<span style="color:blue;">&lt;-- actions such as writing to flash, making config changes, etc. require enable privilege</span>''
# <tt>{{mono|action 1.3 cli command "show standby | append flash:hsrp_state_change.txt"</tt>}} ''<span style="color:blue;">&lt;-- write some debugging output to flash</span>''
# <tt>{{mono|action 1.4 cli command "show standby brief | flash:append hsrp_state_change.txt"</tt>}} ''<span style="color:blue;">&lt;-- more debugging output</span>''
# <tt>{{mono|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"</tt>}} ''<span style="color:blue;">&lt;-- send an email with the result of the last CLI command in the body of the message</span>''
 
==Network Management Software and Tools Support==
Line 176:
 
* [[CiscoWorks]]
* [[CiscoWorks#LMS_ApplicationsLMS Applications|CiscoWorks LMS]]
* [http://progrizon.com/products/tools-overview.html Progrizon: EEM Deployment Application Suite and EEM Policy Builder]
* [http://www.davranetworks.com Davra Networks: EEM Solutions]
Line 182:
==References==
<references/>
 
== Further reading ==
* {{cite book|ref=harv|chapter=Embedded Event Manager (EEM)|title=TcL Scripting for Cisco IOS|series=Networking Technology Series|first1=Ray|last1=Blair|first2=Arvind|last2=Durai|first3=John|last3=Lautmann|publisher=Cisco Press|year=2010|isbn=9781587059452}}
 
==External links==
* [http://www.cisco.com/en/US/prod/collateral/iosswrel/ps6537/ps6555/ps6815/datasheet_c78-492444.html EEM Data Sheet]
Line 192 ⟶ 194:
* [http://www.cisco.com/go/smartcallhome Go Smart Call Home]
* [[Web Services Management Agent]]
 
===EEM-Based Solution Development===
* [http://www.progrizon.com/index.html Progrizon, Inc. EEM Solution Development and Consulting]
 
===Training===
* [http://progrizon.com/products/training-overview.html Progrizon, Inc. Training]