This article describes the grab-log-snapshot report as one utility that collects a snapshot of a system's logfiles, stacktrace and memory information plus other information needed in order to diagnose a problem.
Logs should be collected during any of the following scenarios:
Version: FortiNAC legacy 8.x and greater.
Version: FortiNAC-OS 7.2.x and greater.
This will generate and download a snapshot of the logs directly from the browser. The status is shown at the bottom right of the screen.
In HA environment when Primary is in control, there is a possibility to generate secondary node grab-log-snapshot from GUI.
Click on ? Question Mark icon, then into the "Gear" (settings) icon:
Download logs - Advanced option to download primary or/and secondary node grab-log-snapshot will appear:
Click on the image to view it in greater detail.
CLI Instructions (CentOS appliance):
The script will collect and zip a large number of files.
This will take several minutes.
The resulting zip file (log-snapshot-<hostname>-<timestamp>.tar.gz) is located in the /tmp directory.
This program grabs a snapshot of the system logfiles.
It takes several minutes to run.
Gathering system info....
Grabbing memory info....
Grabbing scheduler info....
Grabbing cluster network info....
Grabbing license info...
Packaging logfiles (takes a little while)...
Prelink messages that state that 'at least one of file's dependencies has changed since prelinking' can be ignored.
Logs are here: /tmp/log-snapshot-fortinac.forti.lab-20230428160858.tar.gz
Give this file to Support.
If a CPU performance or a memory-usage are experienced the problem, arrange with Support to run the collect-linux-debug-info script.
If the file(s) are too big, contact Support for assistance.