From b446369e495da5406c3da1a46ca585350729e2a9 Mon Sep 17 00:00:00 2001 From: Yuri Slobodyanyuk Date: Sat, 5 Mar 2022 17:49:26 +0200 Subject: [PATCH] Removed manual TOC in FGT debug, added DHCP debug to FGT --- ...e-debug-diagnose-complete-cheat-sheet.adoc | 45 +++++++++++-------- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc b/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc index 9f2ae42..a9d1826 100644 --- a/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc +++ b/cheat-sheets/Fortigate-debug-diagnose-complete-cheat-sheet.adoc @@ -1,5 +1,6 @@ = Fortigate debug and diagnose commands complete cheat sheet :homepage: https://yurisk.info +:toc: Author: Yuri Slobodyanyuk, https://www.linkedin.com/in/yurislobodyanyuk/ @@ -11,24 +12,6 @@ NOTE: To disable and stop immediately any debug, run *dia deb res* which is shor NOTE: All debug will run for 30 minutes by default, to increase use `diagnose debug duration `, setting to 0 means unlimited by time. Reboot will reset this setting. -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + -<> + @@ -348,6 +331,32 @@ a|View the kernel routing table (FIB). This is the list of resolved routes actua |=== +== DHCP server + +.DHCP server +[cols=2, options="header"] +|=== +|Command +|Description + + +|*show system dhcp server* +|Show DHCP server configuration, including DHCP address pools. + +|*execute dhcp lease-list [_interface name_]* +|Show real-time list of allocated by Fortigate addresses via DHCP. It will show IP address of each client, its MAC + address, device type/name (Android, iOS, Windows, etc.), the lease time and expiration. + +|*execute dhcp lease-clear all/_start-end-IP-address-range_* +|Clear DHCP allocations on the Fortigate. This will NOT cause clients that already have IP addresses to release them, but will +just clear Fortigate DHCP database and will start over allocating again. You can either clear _all_ IP addresses in the database, or only specific IPs. + + +|*diagnose debug application dhcps -1* +|enable real-time debug of DHCP server activity. + +|=== + == NTP debug .NTP daemon diagnostics and debug