Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
iunderwood74
New Contributor

TCL Script Execution (6.0.3)

I am diving off the deep end going to TCL scripting for handling the provisioning of a series of remote FortiGates.  I've been working on the script in parts and while I was trying to figure out some of my input logic, I kept on getting script failures.  Unable to figure out the problem, I put up a very, very simple script:

 

#!

puts "Testing ..."

 

I expect that this should just do a simple output of the one line and be done with it.  However, this does not happen:

 

The log is here:

 

-------Executing time: Thu Nov 15 09:53:02 2018-----------

Starting log (Run on device)

----------------End of Log-------------------------

 

The task history is here:

NamePercentDescriptionEVO-0002-RT1(TCL-Test)0%2018-11-15 09:53:02:start installing script TCL-Test to EVO-0002-RT1EVO-0002-RT1(TCL-Test)5%2018-11-15 09:53:04:init state: start to get checksumEVO-0002-RT1(TCL-Test)30%2018-11-15 09:53:08:premagic state: start TCL script fileEVO-0002-RT1(TCL-Test)70%2018-11-15 09:53:08:running tcl script failed. Reason: Run script failEVO-0002-RT1(TCL-Test)100%2018-11-15 09:53:08:Script TCL-Test executed on EVO-0002-RT1 failed. Reason: Run script fail

 

I have to be missing something rudimentary.

++I;
++I;
1 Solution
jasond
New Contributor

This solved it for me:

[link]https://forum.fortinet.com/FindPost/130828[/link]

View solution in original post

4 REPLIES 4
jasond
New Contributor

This solved it for me:

[link]https://forum.fortinet.com/FindPost/130828[/link]

iunderwood74

That fixed it!  Thanks!

++I;
++I;
jasond

No problem. Now if I can figure out how to apply a password to 500+ units without editing each device manually...

andre_krmpl
New Contributor

Can you post the solution again? After the change to the new Fortinet Community I can't open the link. Also didn't find anything by search.

Labels
Top Kudoed Authors