Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

EEM (Tcl) Script for an Event Help

Posted on 2013-05-18
3
Medium Priority
?
517 Views
Last Modified: 2013-05-19
Hello Community,
 
Can someone please show me how to compile a EEM (Tcl) script that will be activated when a syslog event occurs. For example, I would like the script to be activated when the following syslog event occurs:
 
%OSPF-5-ADJCHG:
 
Also I would like a similar script to be activated when the following syslog event occurs:
 
 
VDC_MGR-2-VDC_BAD: vdc_mgr
VDC_MGR-2-VDC_UNGRACEFUL: vdc_mgr:
 
 
 
Cheers
0
Comment
Question by:cpatte7372
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 

Author Comment

by:cpatte7372
ID: 39177690
OK, I tried to create a simple Tcl script from an EEM script using the tool provided on various scripting sites. However, when I issue the command send log %OSPF I should get the message 'testlog_ospf', but nothing happens.

::cisco::eem::event_register_none
::cisco::eem::event_register_syslog pattern {%OSPF}

namespace import ::cisco::eem::*
namespace import ::cisco::lib::*

array set arr_einfo [event_reqinfo]

action_syslog msg "testlog_osfp"


Any help?

Cheers
0
 
LVL 37

Accepted Solution

by:
ArneLovius earned 2000 total points
ID: 39178601
It's not a tcl script, but I have a basic script for restarting debugs for PPPoE on an 1812 based on a syslog message.

event manager applet DEBUG
 event syslog occurs 1 pattern "%SYS-5-RESTART"
 action 1.0 cli command "enable"
 action 2.0 cli command "debug pppoe events"
 action 3.0 cli command "debug pppoe errors"
 action 4.0 cli command "debug ip ddns update"
 action 5.0 syslog msg "Debugs Enabled"

Open in new window

0
 

Author Closing Comment

by:cpatte7372
ID: 39179594
Cheers
0

Featured Post

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question