Created on 09-28-2018 05:40 AM Edited on 02-02-2024 06:34 AM By Stephen_G
Description
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:
Important:
Scope
Version: FortiNAC legacy 8.x and greater.
Version: FortiNAC-OS 7.2.x and greater.
Solution
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):
grab-log-snapshot
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.
For example:
grab-log-snapshot
This program grabs a snapshot of the system logfiles.
It takes several minutes to run.
Gathering logfiles...
Gathering system info....
Grabbing stacktraces....
Grabbing memory info....
Grabbing scheduler info....
Grabbing cluster network info....
Grabbing license info...
Packaging logfiles (takes a little while)...
All done.
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.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.