Forum Discussion
How to see LTM statistics: Virtual Servers maximum connections
Hi,
From the GUI, I can select Statistics->Module statistics->Local Traffic, and then select to see all of the connections (current, max, total) statistics output. The problem is that it does not sort it. (using ver 11.5.1). How can I pull the same statistics from CLI?
I have been searching on the web, and found the followings:
-
https://devcentral.f5.com/codeshare/sort-objects-by-busy-ness => I used the script but could not save it due to some errors. I am a newbie, don't know what are those errors for.
-
tmsh show sys connection cs-server-addr VIP cs-server-port PORT | egrep -v 'T|S' | cut -d: -f 1 | uniq -c => the problem is I want to list all the VIPs/VSs and sort them. I dont want to check them one by one.
-
Is this code doing what I need? using bigtop:
bigtop -conn -vips 30 -vname -scroll -vname
I want to choose the top VIPs in terms of max connections.
Thank you!
5 Replies
- arpydays
Nimbostratus
Try this for current max client-side connections,
first one is max conns per VS, second one is max conns per VIP.
cheers
tmsh show sys connection | egrep -v 'T|S' | awk '{print $2}' | sort -n | uniq -c | sort -n tmsh show sys connection | egrep -v 'T|S' | awk '{print $2}' | cut -d: -f 1 |sort -n | uniq -c | sort -n - Mondana_214537
Nimbostratus
Thank you so much for your reply.
tmsh reply is that egrep and awk are not supported. and only grep is supported: Syntax Error: "awk", grep is currently the only filter that is supported !! This is while I can use both egrep and awk in bash mode!!
Besides that, what is the difference between the following two commands? Are they doing the same thing?
$[bash] bigtop -conn -vips 50 -vname -scroll -vname | egrep '_TCP_80|_TCP_443' | awk '{print "VIP: "$1" Connections:"$4}' $[tmsh] show sys connection | egrep -v 'T|S' | awk '{print $2}' | cut -d: -f 1 |sort -n | uniq -c | sort -nI want to know is bigtop producing the same report as 'tmsh show sys connection'?
- arpydays
Nimbostratus
you need to run this from the bash prompt NOT within TMSH,
what s/w version are you on?
cheers
- Mondana_214537
Nimbostratus
Thanks! It works from bash mode! I am on Version 11.5.1
I am still not clear on what is the difference between "bigtop -conn" and "tmsh show sys connection? Do you know of any documents that can explain that?
Thank you.
- arpydays
Nimbostratus
bigtop is part of the legacy shell that was used before v11, I'm not even sure of if it's full supported in v11 - when tried on a system using APM I don't see any of the tunnelled network access connections whereas in tmsh show sys con I do. Traffic management shell, TMSH, is the new shell for v11. You can read more about bigtop below and there is a tmsh reference guide in the askF5 documentation section.
cheers
https://support.f5.com/kb/en-us/solutions/public/7000/300/sol7318.html?sr=47795979
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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