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:
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.
Step 4: The first time connecting to the FortiGate the following message will be shown, just press Continue.
Step 5: Type the username and password and press OK.
Step 6: Once teraterm is connected to the FortiGate, select Control -> Macro.
Step 7: Select the script provided by TAC or download from the Technical Tip: TAC debug script with TeraTerm article.
Step 8: The password will be requested one more time, type it and press OK.
After that the script should be running, it will display a small window showing the loop count.
Follow the TAC instructions and upload the logs collected to the ticket as instructed by the TAC engineer. |