Skip to main content
gsharma
Staff
Staff
Sep 6, 2022 7:40 AM UTC

Technical Tip: How to view sessions for a specific virtual server

Description

 

This article describes how to view the session table for a specific virtual server on FortiADC using the GUI or CLI.

 

Scope

 

FortiADC and FortiADC-VM.

 

Solution


The session table displays information about sessions handled by FortiADC. Viewing sessions for a specific virtual server helps identify client connections and their associated real servers during troubleshooting.

 

Method 1: Using the GUI.

  1. Navigate to FortiView > Server Load Balance > Virtual Server.

  2. If analytics is disabled for the required virtual server, select its checkbox and select Enable Analytics.


Note: Enabling analytics for too many items can negatively affect page loading speed. Enable it only for the virtual servers required for troubleshooting.

'Insert the screenshot showing Enable Analytics here.'.

  1. Select OK in the confirmation dialog.

'Insert the analytics confirmation screenshot here.'.

  1. Open the required virtual server and select the Session tab.

The session table displays connection details, including source and destination addresses and ports, session state, protocol, traffic counters, and real server name.

'Insert the Session tab screenshot here.'.

  1. If multiple sessions are displayed, select Add Filter to narrow the results.

  2. Refresh the table to update the displayed sessions. Expired sessions are no longer shown after the table refreshes.

 If analytics were enabled specifically for troubleshooting, disable it once troubleshooting is complete.

 

gsharma_0-1662445447043.png

 

This warning will appear when analytics are enabled:


gsharma_1-1662445518554.png

 

MicrosoftTeams-image (2).png

 

Method 2: Using the CLI.

  1. Apply a session filter for the required virtual server:

diagnose server-load-balance session filter 'vs-name <Virtual Server Name>'


Replace <Virtual Server Name> with the configured virtual server name.

  1. Verify that the filter is applied:

diagnose server-load-balance session filter show


  1. Display the sessions matching the filter:

diagnose server-load-balance session list


Related documents:
diagnose server-load-balance session

All Sessions

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024