Created on
07-18-2024
10:09 PM
Edited on
06-29-2025
09:58 PM
By
Jean-Philippe_P
Description |
The article describes one way to use a filter on the NP7 sniffer captures. |
Scope | FortiGate. |
Solution |
In the example below, the bidirectional traffic is captured on the interface lag1.55 between the source 172.20.6.1 and 10.0.165.5:
NP7 Sniffer:
diagnose npu sniffer start
If a capture on multiple interfaces is required for example lag1.55 and lag2.55: diagnose npu sniffer filter intf lag1.55 diagnose npu sniffer start
diagnose npu sniffer filter selector 1 <-- This is the filter ID and only 4 can be created and used simultaneously from 0 to 4). diagnose npu sniffer filter intf lag2.55 diagnose npu sniffer start
To obtain the output with a specific filter/count/time format, run the below command to start sniff packets for NP:
Example:
diagnose sniffer packet npudbg '' 6 0 l
<level>
<count> #The number of packets to capture. If 0 or no value is defined, unlimited packets will be captured until ctrl+c is used to stop.
It is recommended that after completing the NP sniffer, to stop using the following command :
diagnose npu sniffer stop
Related document: |
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 2025 Fortinet, Inc. All Rights Reserved.