Skip to main content
Fortiben1
Explorer II
November 28, 2024
Question

Fortigate CPU Utilization Time

  • November 28, 2024
  • 6 replies
  • 2067 views

Good day Fortipeeps,

 

I just want to ask if there's such command to get fortigate CPU utilization for specific time? For example diag sys top 2024-11-11. or that command does not exist.

 

Thank you! 

6 replies

sjoshi
Staff
Staff
November 28, 2024

Hi Fortiben1,

 

get sys perf status >> will give CPU status

Also from the System event logs it will give you the CPU stats every 5 mins

Thanks, Salon
Fortiben1
Fortiben1Author
Explorer II
November 28, 2024

Hello Sir sjoshi,

Thank you for your help I tried it right now. I saw earlier 1 CPU core usage peaked at 70% but did not last for second as per graph (millisecond I guess). Tried to choose the 30 min option on the utilization but the spike did not show up.

sjoshi
Staff
Staff
November 28, 2024

If the CPU Spikes is for few secs monitoring script can be run to monitor the status of the device.

it will capture the output automatically.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-FortiGate-monitoring-script/ta-p/193006

https://community.fortinet.com/t5/FortiGate/Configuration-Example-FortiGate-remote-monitoring-and-logging/ta-p/189892

Thanks, Salon
wmichael
Staff
Staff
November 28, 2024

Hello,

 

You can use the command ' diagnose sys mpstat <delay> <loops>' to monitor utilization over a period of time.  Delay is in seconds, loops is the number of times you want it to run.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Deprecated-of-command-diagnose-sys-top-summary/ta-p/195551

 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!