03-20-2007 06:34 AM
I just discovered the tclsh command in my IOS but I have some questions. How do I edit and save a script to the flash and is there a way to schedule a script?
Thanks!
03-20-2007 07:39 AM
very basic information:
edit outside- transfer to flash/disk memory
kron is not supported before 12.4(3) as it is mentioned here
here are some examples for EEM:
http://forums.cisco.com/eforum/servlet/EEM?page=main
and you get some more info if you dig around with the Forums search option with "tcl" and "EEM" in 'Infrastructure' section
03-22-2007 05:00 PM
I guess I need more help than I thought I did with this. I edited a script and TFTP'ed it to the flash but it doesn't do anything when I execute it. I have the following in it:
exec "show ip int brie |e unassigned"
It works fine when I run it from the command line but not from the saved script.
Thanks!
03-22-2007 08:34 PM
I think you want either your script to be:
show ip int brie | e unassigned
Or:
set output [exec "show ip int brie | e unassigned"]
puts $output
Both should work on all versions of IOS that support tclsh.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide