FortiManager
FortiManager supports network operations use cases for centralized management, best practices compliance, and workflow automation to provide better protection against breaches.
mriha
Staff
Staff
Article Id 404195
Description This article describes how to overcome 70 character limit when running TCL scripts remotely on FortiGate.
Scope FortiManager.
Solution

When running longer commands on FortiOS by utilizing TCL scripts on FortiManager, there is 70 70-character limit, which inserts a space character following every 70th character.

 

Before:

 

puts [exec "execute vpn certificate ca import auto http://10.0.0.1/someverylongrequstthatislongerthan70characters\n" "# "]

 

limit.png

 
The solution is to insert a line continuation character '\' and a newline character that has to be escaped '\\n' into the command:
 
After:
 
puts [exec "execute vpn certificate ca import auto http://10.0.0.1/someverylongr\\\nequstthatislongerthan70characters\n" "# "]

 

 

limitn.png
 

The command now executes correctly. The script output is colored red because the long URL is for testing purposes only.

 

How to enable TCL script on FortiManager - FortiManager 7.6.3 administration guide