• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 529
  • Last Modified:

EEM (Tcl) Script for an Event Help

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:
Also I would like a similar script to be activated when the following syslog event occurs:
VDC_MGR-2-VDC_BAD: vdc_mgr
  • 2
1 Solution
cpatte7372Author Commented:
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_syslog pattern {%OSPF}

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

array set arr_einfo [event_reqinfo]

action_syslog msg "testlog_osfp"

Any help?

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

cpatte7372Author Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now