Forum Discussion

Mondana_214537's avatar
Mondana_214537
Icon for Nimbostratus rankNimbostratus
Aug 20, 2015

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:

 

  1. 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.

     

  2. 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.

     

  3. 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

  • 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
    
  • 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 -n
    

    I want to know is bigtop producing the same report as 'tmsh show sys connection'?

  • you need to run this from the bash prompt NOT within TMSH,

     

    what s/w version are you on?

     

    cheers

     

  • 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.

     

  • 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