Description | This article describes why session counts are not exactly the same as CLI session list output and GUI FortiView. |
Scope | FortiGate. |
Solution |
During an active session verification on FortiGate, both the GUI FortiView and the CLI session list output can be used to analyze.
There are some differences in the session list output from CLI and from GUI FortiView. The reason why the session counts are different is CLI output will show the complete session list, including local sessions.
Here is a sample output :
Now, verify the output of CLI against the GUI session list:
diagnose sys session list
session info: proto=17 proto_state=01 duration=247 expire=176 timeout=0 refresh_dir=both flags=00000000 socktype=0 sockport=0 av_idx=0 use=3
session info: proto=6 proto_state=11 duration=745391 expire=3448 timeout=3600 refresh_dir=both flags=00000000 socktype=0 sockport=0 av_idx=0 use=4
The section no_ofld_reason will show the reason why there are multiple sessions in the CLI output. If the reason is Local, that means that it is a self-originated local traffic:
The same can be verified in Local traffic logs :
|
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.