From a0163aa4a5633c8cbe91bc3881281434da1007d0 Mon Sep 17 00:00:00 2001 From: Yuri Slobodyanyuk Date: Fri, 7 Oct 2022 18:26:28 +0000 Subject: [PATCH] Fortigate cheat sheet, added top --- .../Fortigate-debug-diagnose-complete-cheat-sheet.adoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc b/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc index ef56a05..9301792 100644 --- a/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc +++ b/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc @@ -85,6 +85,12 @@ iprope lookup 10.10.10.1 34567 8.8.8.8 443 6 LAN1` |*get sys performance stat* |Show real-time operational statistics: CPU load per CPU, memory usage, average network/session, uptime. +|*diagnose sys top [_refresh_] [_num-of-processes_] [_iterations_]* +|Print list of running processes updated every _refresh_ seconds, for +_iterations_ times, sorted in descending order by the CPU load. This `top` command does not display all processes by +default, to show them all, set _num-of-processes_ to high number, for example +100. + |*diagnose debug crashlog read* | Display crash log. Records all daemons crashes and restarts. Some daemons are more critical than others.