Skip to main content
EvanRaci
Explorer III
March 22, 2023
Solved

diagnose debug enable command

  • March 22, 2023
  • 3 replies
  • 5100 views

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

Best answer by Anonymous_User

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.

3 replies

New Contributor II
March 22, 2023

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
March 22, 2023

Thanks for the help

mzainuddinahm
Staff & Editor
Staff & Editor
March 22, 2023

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
February 6, 2024

Recent versions of FortiOS let one specify the debug duration: 

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