Skip to main content
iunderwood74
New Member
Nov 15, 2018 3:04 PM UTC
Solved

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.

jasond
jasondAnswer
New Member
Dec 12, 2018 7:11 PM UTC

This solved it for me:

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

4 replies

jasond
jasondAnswer
New Member
Dec 12, 2018 7:11 PM UTC

This solved it for me:

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

iunderwood74
New Member
Dec 13, 2018 3:27 PM UTC

That fixed it!  Thanks!

jasond
New Member
Dec 13, 2018 5:03 PM UTC

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
Nov 29, 2021 10:25 AM UTC

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. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT