Forum Discussion

Matt_Pitts_6390's avatar
Matt_Pitts_6390
Icon for Nimbostratus rankNimbostratus
May 27, 2015

TMSH command to count number of connections to VIP per client IP?

We used to have a great AWK guy on the team that wrote us a nice bigpipe one-liner to count the number of connections to a VIP by client IP:

 

b conn server VIP:PORT show all | grep CLIENTSIDE | awk '{print $2}' | cut -d : -f 1 | uniq -c

 

However, as we move away from bigpipe I need to find a way to do this with TMSH. Does anyone have one in their toolbox already, or am I missing a simple command based method to get this information?

 

I appreciate the help, AWK is not a skill I've picked up over the years.

 

2 Replies

  • this might give a similar result

     

    tmsh show sys connection cs-server-addr VIP cs-server-port PORT | grep -v 'T|S' | cut -d: -f 1 | sort | uniq -c