×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

Having trouble using EEM and TCL 'after' command

Unanswered Question
Dec 12th, 2013
User Badges:

Hi,


I am using EEM to trigger the following commands on a set event:


action 1 cli command "enable"

action 2 cli command "tclsh flash:mytcl.tcl"


In my tcl script I am using the command 'after' to sleep for a specific time.

What I notice is that the script doesn't work consistently. Say I want to wait for 10 iterations and in each iteration sleep, sometimes it only does the first iteration, sometimes 2 and sometime 3 (3 was the max I got).


When I run the script via cli

R1#tclsh flash:mytcl.tcl

It works fine every time.


When I removed the 'after' command it completed the iterations fine.

Is there a different command I can use?


I am running this on a 7200 with  IOS 12.4(20)T.


Thanks,

Oren.

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
oren.hecht Sun, 12/15/2013 - 07:27
User Badges:

After translating my script to proper EEM and having the same issue, I found out it was due to the maxrun setting that defaults to 20 seconds.


I configured it to be more, and it all works now.

Actions

This Discussion