Working with Scripts : Script samples
 
Script samples
This section helps familiarize you with FortiManager scripts, provides some script samples, and provides some troubleshooting tips.
The scripts presented in this section are in an easy to read format that includes:
the purpose or title of the script
the script itself
the output from the script (blank lines are removed from some output)
any variations that may be useful
which versions of FortiOS this script will execute on
 
Do not include \r in your scripts as this will cause the script to not process properly.
Script samples includes:
CLI scripts
TCL scripts