Troubleshooting Tip: Packet capture limitations in GUI and extended packet capture using CLI
| Description | This article describes the differences between GUI and CLI packet capture on FortiGate, including GUI limitations and the use of CLI for extended packet capture during traffic troubleshooting. |
| Scope | FortiGate. |
| Solution | FortiGate packet capture behavior differs between the graphical user interface (GUI) and the command-line interface (CLI).
Steps:
GUI limitations: There are limits on the number of simultaneous packet captures and the maximum number of packets per capture, which are based on system specifications. From v7.4.4+, to determine the maximum number of packet captures supported per device, utilize the Maximum Values Table and look for the parameter firewall.on-demand-sniffer.
Packet capture initiated from the CLI is not subject to GUI packet count restrictions, and the same is displayed in the GUI as well.
Note: The built-in GUI CLI must not be used for high-volume packet capture, as it cannot handle large volumes of traffic output.
Steps:
Reference: Technical Tip: How to create a log file of a session using PuTTY.
diagnose sniffer packet <interface> "host <IP>" 6 <count> l
Related article: Troubleshooting Tip: Using the FortiOS built-in packet sniffer for capturing packets |

