cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
387
Views
0
Helpful
2
Replies

Embedded Event Manager TCL Script

mark.mcsherry
Level 1
Level 1

Hi,

I am looking for a TCL script which looks for a syslog message, then takes a particular action.

In my case, I'm watching for an E1 controller to go down (which produces a syslog message), then do something like unshut another interface.

Has any one got any sample scripts they can share?

Thanks in advance,

Mark

1 Accepted Solution

Accepted Solutions

leonvd79
Level 4
Level 4

Hello Mark,

An example is provided in the documentation of EEM 2.1.

hostname cpu

ip domain-name cisco.com

event manager _email_server ms.cisco-user.net

event manager _email_to username@cisco-user.net

event manager _email_from engineer@cisco-user.net

event manager _email_cc projectgroup@cisco-user.net

event manager _cron_entry 0-59/2 0-23/1 * * 0-7

event manager _show_cmd show event manager policy registered

event manager _syslog_pattern .*UPDOWN.*FastEthernet0/0

event manager _config_cmd1 interface Ethernet1/0

event manager _config_cmd2 no shut

end

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cg/hnm_c/ch05/heem21.htm#wp1027258

HTH

--Leon

* Please rate posts

View solution in original post

2 Replies 2

leonvd79
Level 4
Level 4

Hello Mark,

An example is provided in the documentation of EEM 2.1.

hostname cpu

ip domain-name cisco.com

event manager _email_server ms.cisco-user.net

event manager _email_to username@cisco-user.net

event manager _email_from engineer@cisco-user.net

event manager _email_cc projectgroup@cisco-user.net

event manager _cron_entry 0-59/2 0-23/1 * * 0-7

event manager _show_cmd show event manager policy registered

event manager _syslog_pattern .*UPDOWN.*FastEthernet0/0

event manager _config_cmd1 interface Ethernet1/0

event manager _config_cmd2 no shut

end

http://www.cisco.com/univercd/cc/td/doc/product/software/ios124/124cg/hnm_c/ch05/heem21.htm#wp1027258

HTH

--Leon

* Please rate posts

Hi Leon,

Many thanks, exactly what I was after!

Appreciate your help. The scripts detailled in the doc are not actually in that doc. I have located them on CCO and attached to this thread.

Best regards,

Mark

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card