Created on
09-30-2014
06:00 AM
Edited on
01-05-2026
12:30 AM
By
Jean-Philippe_P
Description
Solution
cw_diag repeat 10000 1 "dmesg -c"
This command will continuously capture the dmesg on the FortiAP, and a prompt will be returned after 10000 counts. If there is any ping lost, it should be captured on this output.
FAP# # cw_debug on
FAP# # cw_debug app cwWtpd 0x7fff
Air sniffer.
At the same time, a wireless sniffer must be taken near the test PC. Make sure there is NO filter on the air sniffer. The channel must be set to the one used by the test PC (association to FortiAP).
At the same time, on the FortiGate, the following information must be captured:
To filter the traffic of FortiAP where the test PC is connected, the following must be done (this is an example) using:
diagnose wireless-controller wlac -c ws
Find the FortiAP WTP session of the FortiAP used by the test PC.
This is the output taken from a lab as an example:
-------------------------------WTP SESSION 2----------------------------
WTP session : 0-192.168.222.82:5246 CWAS_RUN impacted FAP session
indev : 4(wan2)
in_ifIdx : 4(wan2)
mesh uplink : ethernet
id : FP221B3X11000009
Using the output above, use the following diagnose command to turn on the filter:
diagnose wireless-controller wlac wtp_filter FP221B3X11000009 0-192.168.222.82:5246 4
Then the following debug can be enabled
diagnose debug console timestamp enable
diagnose debug application cw_acd 0x7fff
diagnose debug enable
Note: As soon as the above commands are enabled, lots of logs will come up, but it will be possible to copy and paste below sniffer commands in the same window without any error.
Sniffer trace must be captured at the same time on the same SSH session:
diagnose sniffer packet any "host " 6 0 a
The output must be captured to a file (FGT.log before and during peak).
While ping is running, take a screenshot whenever there is a ping loss and paste it into a Word file with the file name as sta_ping_log. Make sure ping timeouts and laptop time are visible on screenshots.
Leave the debug (1., 2., 3., and 4.) running during the time that the problem is present. The duration of the capture will depend on the presence of the problem (ping loss).
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 2026 Fortinet, Inc. All Rights Reserved.