Skip to main content
Renante_Era
Staff
Staff
October 16, 2023

Troubleshooting Tip: Memory debugs needed when creating a bug ticket

Description This article lists the CLI commands that should be provided to developers when creating an internal Bug ID related to a suspected FortiGate memory leak.
Scope FortiGate v7.2.6+, FortiGate v7.4.0+, FortiGate v7.6.0+.
Solution

CLI commands:

 

get system status
fnsysctl date
get sys perf status

diagnose autoupdate version

diagnose sys session stat
diagnose hardware sysinfo memory
diagnose hardware sysinfo slab
diagnose sys vd list | grep fib
diagnose sys mpstat 1 5
diagnose sys top-all 2 30
diagnose sys top-mem 10
diagnose firewall packet distribution
diagnose snmp ip frags
fnsysctl df -k
fnsysctl ls -l /tmp
fnsysctl du -i /tmp
fnsysctl du -a /tmp
fnsysctl du -a / -d 1
fnsysctl du -i /dev/shm
fnsysctl du -a /dev/shm
fnsysctl du -i /node-scripts
fnsysctl du -a /node-scripts

 

Note: Super Admin privileges are necessary to run the 'fnsysctl' command. Otherwise, FortiGate will return an error. For more details, see Technical Tip: fnsysctl command returns Unknown action 0. 

 

It is also possible to attach the output of the commands from this related article:

Technical Tip: Memory Debugs

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
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