Forum Discussion
VS STATISTICS
- Feb 11, 2025
Hi THE_BLUE
This command will show you the total stats on the virtual server from the time the LB was booted ( if that virtual server/s stats were not reset post last boot). If the virtual server stats were reset after the boot then the count you will see after that will be since last counter reset on that virtual server.
It also shows current connection count which refers to current live connections on it in real time.
Hi The_Blue,
You need to add detail keyword in the end of the command you pasted for a specific VIP you wan to see the all STATS
tmsh show /ltm virtual /Common/vs_name detail
or run the same command in tmsh mode as follows , this will give the details of all the pools pool members all the profiles SNAT etc etc in hierarchical mode :
show /ltm virtual /Common/vs_name detail
to see the STATS for all the VIPs on a particular partition use:
tmsh
show ltm virtual all-properties detail
to see the STATS for all the VIPs on all the partition use:
tmsh -q -c "cd / ; show ltm virtual recursive all-properties detail"
the output will be Massive.
i use MPUTTY or PUTTY and log the output so that I can analyze the output.
Download MPUTTY if it is allowed in your environment.
Here is more detail to the commands for checking the stats of virtual servers (VIPs) on an F5 BIG-IP system.
Command to See Stats for a Specific VIP
To see detailed stats for a specific virtual server, use the following command:
tmsh show /ltm virtual /Common/vs_name detail
- tmsh: Traffic Management Shell, the command-line interface for managing F5 devices.
- show /ltm virtual /Common/vs_name detail: Shows detailed statistics for the virtual server named vs_name in the /Common partition.
Command to See Stats for All VIPs in a Particular Partition
To see detailed stats for all virtual servers in a specific partition, use:
tmsh show ltm virtual all-properties detail
- tmsh: Traffic Management Shell.
- show ltm virtual all-properties detail: Shows detailed statistics for all virtual servers in the current partition, including all properties.
Command to See Stats for All VIPs in All Partitions
To see detailed stats for all virtual servers across all partitions, use:
tmsh -q -c "cd / ; show ltm virtual recursive all-properties detail"
- tmsh -q: Runs the command in quiet mode, suppressing unnecessary output.
- -c "cd / ; show ltm virtual recursive all-properties detail": Changes the directory to the root and shows detailed statistics for all virtual servers recursively across all partitions, including all properties.
Logging the Output
Given that the output can be massive, it's a good idea to log it for analysis. You can use tools like MPUTTY or PUTTY to log the output. Here’s how you can do it:
- Download and Install MPUTTY or PUTTY:
- Ensure it's allowed in your environment.
- Configure Logging in PUTTY:
- Open PUTTY.
- Go to Session and enter the IP address of your F5 device.
- Go to Logging under the Session category.
- Select All session output and specify the log file location.
- Click Open to start the session and log the output.
- Run the Command:
- Execute the desired tmsh command in the PUTTY session.
- The output will be logged to the specified file for later analysis.
By following these steps, you can effectively gather and analyze detailed statistics for your virtual servers on the F5 BIG-IP system.
Let me know for any further help on this.
kindly Rate
HTH
F5 Design Engineer
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com