Skip to main content
EvanRaci
Explorer III
Mar 22, 2023 2:29 AM UTC
Solved

diagnose debug enable command

Hi all,

 

I just want to confirm about the command "diagnose debug enable".

If I enabled "diag debug enable" command in Fortigate it will only enabled only for 30 min or it will run as long as I don't reset or manually disable the debug?

Also , after I reboot or shutdown the FortiGate , "diag debug" state will still be enable state or disabled state when it comes up? 

Thank you

Esteemed Contributor III
Mar 22, 2023 3:22 AM UTC

Hi @EvanRaci ,

 

diagnose debug enable will be run for 30min only. It will automatically stopped after 30min to avoid using resources of the Fortigate.

After reboot, you need to run your debug command from scratch.

4 replies

Esteemed Contributor III
Mar 22, 2023 3:22 AM UTC

Hi @EvanRaci ,

 

diagnose debug enable will be run for 30min only. It will automatically stopped after 30min to avoid using resources of the Fortigate.

After reboot, you need to run your debug command from scratch.

EvanRaci
EvanRaciAuthor
Explorer III
Mar 22, 2023 3:25 AM UTC

Thanks for the help

mzainuddinahm
Staff & Editor
Staff & Editor
Mar 22, 2023 12:05 PM UTC

Hello EvanRaci,

 

You may refer the KB for debug duration.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Changing-debug-duration/ta-p/191069

 

Best Regards,

Mohammed Ahmed

BSeklecki_GE
Explorer II
Feb 6, 2024 7:42 AM UTC

Recent versions of FortiOS let one specify the debug duration: 

FG# diag debug console duration [####}

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT