Skip to main content
iunderwood74
New Member
November 15, 2018
Solved

TCL Script Execution (6.0.3)

  • November 15, 2018
  • 4 replies
  • 6324 views

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.

Best answer by jasond

This solved it for me:

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

4 replies

jasond
jasondAnswer
New Member
December 12, 2018

This solved it for me:

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

iunderwood74
New Member
December 13, 2018

That fixed it!  Thanks!

jasond
New Member
December 13, 2018

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

andre_krmpl
New Member
November 29, 2021

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.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!