Fortinet white logo
Fortinet white logo

CLI Reference

diagnose server-load-balance vs_stat

diagnose server-load-balance vs_stat

Use this command to display statistics and health information for virtual servers and real server pool members. The command reports availability status, session distribution, throughput, response times, and the timestamp of the last state change (UP or DOWN).

This information is useful for monitoring load-balancing behavior, verifying server availability, and troubleshooting performance issues directly from the CLI without relying on the GUI.

Syntax

diagnose server-load-balance vs_stat vdom <vdom_name> vs <vs_name> rs <rs_name>

Parameter

Description

vs_stat Displays virtual server and real server statistics. Required subcommand.
vdom <vdom_name> Limits the output to the specified VDOM. If omitted, statistics for all VDOMs are shown.
vs <vs_name> Limits the output to the specified virtual server within the given VDOM. If omitted, all virtual servers in the VDOM are shown.
rs <rs_name> Limits the output to the specified real server within the virtual server’s pool. If omitted, all pool members are shown.

Example

FortiADC-VM # diagnose server-load-balance vs_stat vdom root vs vs1
vdom name is root
    virtual-server vs1, availability: HEALTHY
    APP Response: 0
    Client RTT: 1
    Concurrent Connections: 10
    Inbound Throughput: 2611620
    Outbound Throughput: 1189284145
    Requests: 2569
    Server RTT: 1
    Total Sessions: 0

    real-server-pool: rsp1
    id:1, hc_state:UP, last-state-change-time: 2025-05-06 22:00:00
        APP Response: 0
        Concurrent Connections: 10
        Inbound Throughput: 2814350
        Outbound Throughput: 1281520059
        Requests: 2334
        Server RTT: 1
        Total Sessions: 0
    id:2, hc_state:UP, last-state-change-time: 2025-05-06 22:00:00
        APP Response: 0
        Concurrent Connections: 10
        Inbound Throughput: 2814350
        Outbound Throughput: 1281520059
        Requests: 2334
        Server RTT: 1
        Total Sessions: 0

This output shows both the virtual server statistics and the corresponding real server pool member statistics, including health status and the last state change time.

diagnose server-load-balance vs_stat

diagnose server-load-balance vs_stat

Use this command to display statistics and health information for virtual servers and real server pool members. The command reports availability status, session distribution, throughput, response times, and the timestamp of the last state change (UP or DOWN).

This information is useful for monitoring load-balancing behavior, verifying server availability, and troubleshooting performance issues directly from the CLI without relying on the GUI.

Syntax

diagnose server-load-balance vs_stat vdom <vdom_name> vs <vs_name> rs <rs_name>

Parameter

Description

vs_stat Displays virtual server and real server statistics. Required subcommand.
vdom <vdom_name> Limits the output to the specified VDOM. If omitted, statistics for all VDOMs are shown.
vs <vs_name> Limits the output to the specified virtual server within the given VDOM. If omitted, all virtual servers in the VDOM are shown.
rs <rs_name> Limits the output to the specified real server within the virtual server’s pool. If omitted, all pool members are shown.

Example

FortiADC-VM # diagnose server-load-balance vs_stat vdom root vs vs1
vdom name is root
    virtual-server vs1, availability: HEALTHY
    APP Response: 0
    Client RTT: 1
    Concurrent Connections: 10
    Inbound Throughput: 2611620
    Outbound Throughput: 1189284145
    Requests: 2569
    Server RTT: 1
    Total Sessions: 0

    real-server-pool: rsp1
    id:1, hc_state:UP, last-state-change-time: 2025-05-06 22:00:00
        APP Response: 0
        Concurrent Connections: 10
        Inbound Throughput: 2814350
        Outbound Throughput: 1281520059
        Requests: 2334
        Server RTT: 1
        Total Sessions: 0
    id:2, hc_state:UP, last-state-change-time: 2025-05-06 22:00:00
        APP Response: 0
        Concurrent Connections: 10
        Inbound Throughput: 2814350
        Outbound Throughput: 1281520059
        Requests: 2334
        Server RTT: 1
        Total Sessions: 0

This output shows both the virtual server statistics and the corresponding real server pool member statistics, including health status and the last state change time.