cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
944
Views
0
Helpful
3
Replies

tcl scripting?

ph0enix
Level 1
Level 1

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!

3 Replies 3

Martin Ermel
VIP Alumni
VIP Alumni

very basic information:

edit outside- transfer to flash/disk memory

http://www.cisco.com/en/US/products/sw/iosswrel/ps5207/products_command_reference_chapter09186a00801a809f.html#wp1054371

kron is not supported before 12.4(3) as it is mentioned here

http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&forum=Network%20Infrastructure&topic=Network%20Management&CommCmd=MB%3Fcmd%3Dpass_through%26location%3Doutline%40%5E1%40%40.1ddcef70/2#selected_message

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

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!

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.