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.