tcl scripting?

Unanswered Question
Mar 20th, 2007
User Badges:

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?


  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Martin Ermel Tue, 03/20/2007 - 07:39
User Badges:
  • Blue, 1500 points or more

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:

and you get some more info if you dig around with the Forums search option with "tcl" and "EEM" in 'Infrastructure' section

ph0enix Thu, 03/22/2007 - 17:00
User Badges:

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.


Joe Clarke Thu, 03/22/2007 - 20:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

I think you want either your script to be:

show ip int brie | e unassigned


set output [exec "show ip int brie | e unassigned"]

puts $output

Both should work on all versions of IOS that support tclsh.


This Discussion