Created on
01-07-2020
01:23 AM
Edited on
08-29-2024
01:28 AM
By
Jean-Philippe_P
Description
This article describes how to run a script remotely on a FortiGate, using Tera Term software to capture the data on a timely basis. This is useful to collect info to analyze the overall health of the device performance and it is also used to capture intermittent issue which occurs randomly such as CPU or memory spike.
Related link:
TTL command reference
Scope
FortiGate.
Solution
Refer to this KB article for the TAC debug script (Technical Tip: TAC debug script with TeraTerm)
Many SSH tools can be used, but in this example, Teraterm will be used to run the monitoring script.
Here are the steps to use the monitoring script with Teraterm:
To run the script follow the steps mentioned below.
Change the terminal width settings as shown below:
Figure 1.
Note:
Sample scripts are attached.
If the script gets logout automatically, adjust the login timeout period following this command:
config system global
set admin-ssh-grace-time <number_of_seconds> <<max 3600 seconds
set admintimeout <number_of_minutes< << max 480 minutes
end
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 2024 Fortinet, Inc. All Rights Reserved.