I am using one of the latest 5000 series embedded routers and trying to get my TCL script to execute on Router startup, with little success.
It's the first time for me, tho i've been through the relevent Cisco documents, the official book on TCL scripting as well as many examples found online.
Obviously I am missing something somewhere and it has me stumped. I thought it would be a simple task.
Can anyone provide a step by step instruction/requirements to get a TCL script to execute on a Cisco router everytime it boots?
Right there with what Mike said, but give this Tcl policy a try instead:
::cisco::eem::event_register_timer cron cron_entry @rebootputs "Test complete"
With the adventerprisek9 image, you should not need to run this through an applet. You should be able to run it directly from a Tcl policy.
event manager directory user policy flash:
event manager policy test.tcl authorization bypass
Edit: By the way, when you use puts, the output should go to the syslog. There have been bugs though where the output may go to various locations or get "stuck." So please check the output of 'show log' and see if the output has gone there.