cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2195
Views
0
Helpful
2
Replies

How run EEM/TCL script from file

Hi Everyone,

I need to run the EEM script found in this link 

https://supportforums.cisco.com/document/75806/interface-input-queue-monitor

Can you please indicate me a HOWTO for uploading the file and run it under an interface?

Thanks

Federico

1 ACCEPTED SOLUTION

Accepted Solutions

Here is the manual how to run tcl scripts from file - http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_tcl/configuration/12-4t/ios-tcl-12-4t-book/nm-script-tcl.html#GUID-6B16B49C-92CE-4C84-80DD-FB43746B9D9A

In short - you need to upload the script to switch via tftp and the run tcl shell with command tclsh. Then execute the source command source <tcl_script_name_with_full_source_path> 

View solution in original post

2 REPLIES 2

Here is the manual how to run tcl scripts from file - http://www.cisco.com/c/en/us/td/docs/ios-xml/ios/ios_tcl/configuration/12-4t/ios-tcl-12-4t-book/nm-script-tcl.html#GUID-6B16B49C-92CE-4C84-80DD-FB43746B9D9A

In short - you need to upload the script to switch via tftp and the run tcl shell with command tclsh. Then execute the source command source <tcl_script_name_with_full_source_path> 

View solution in original post

Hi,

I get a error. Do you have any clue why?

887VA(tcl)#source flash:interface-input-queue.tcl
invalid command name "::cisco::eem::event_register_timer"
::cisco::eem::event_register_timer watchdog name sixtySeconds time 60
^
% Invalid input detected at '^' marker.

887VA(tcl)#