FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
DPadula
Staff
Staff
Article Id 334981
Description

This article describes that sometimes to troubleshoot an issue, it is necessary to collect a few commands every amount of time. For example, to identify which process is causing a memory leak, it is necessary to collect memory output commands every few minutes and compare the results.

Fortunately, this task can be automated using teraterm scripts. In this article, a Windows machine to run those scripts automatically will be prepared. 

Scope All FortiGate versions.
Solution

As described in the article Technical Tip: TAC debug script with TeraTerm a script was crafted to collect required useful debug commands that will be used by Fortinet TAC to investigate the issue. 

 

Pre-requirements:

  • Computer with Window10 or any other Windows version.
  • TeraTerm version 4.x, we recommend version 4.108.

Note: TeraTerm version 5.x is not compatible with the TAC script, so avoid this version for now.

 

Step 1: Download TeraTerm version 4.108 from the GitHub link.

 

Step 2: Install the TeraTerm as any other software for Windows, and keep all the default settings. 

 

Step 3: Once TeraTerm is installed, select it. The following screen will be shown. Type the FortiGate IP address and press OK. 

 

tt_ip_address.png

 

Step 4: The first time connecting to the FortiGate the following message will be shown, just press Continue. 

 

ssh_key.png

 

Step 5: Type the username and password and press OK. 

 

username_password.png

 

Step 6: Once teraterm is connected to the FortiGate, select Control -> Macro

 

macro.png

 

Step 7: Select the script provided by TAC or download from the Technical Tip: TAC debug script with TeraTerm article.

 

select_ttscript.png

 

Step 8: The password will be requested one more time, type it and press OK.

 

password again.png

 

After that the script should be running, it will display a small window showing the loop count.

 

Script running.PNG

 

Follow the TAC instructions and upload the logs collected to the ticket as instructed by the TAC engineer.