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" "# "]
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" "# "]
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 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.