Jump to content
rev.dennis

Show Connections on Virtual Servers

Recommended Posts

We were running into an issue and I thought it would be good to know what Virtual Servers have a lot of connections but the Statistics Module isn't good unless you clear statistics and start watching at that moment (don't forget to refresh)

Here are two CLI commands that did me well

Maximum Connections per Virtual Server

tmsh show sys connection   | egrep -v 'T|S'  | awk '{print $2}' | sort -n | uniq -c | sort -n

The output looks something like this with the Virtual Server at the bottom with 3655 connections

    330 172.74.1.20:443
    709 10.40.64.162:53
    713 10.40.64.163:53
    966 172.74.1.62:443
   1086 10.40.32.50:53
   1210 172.74.1.72:443
   1460 10.47.53.25:389
   1465 10.47.53.27:389
   1467 10.47.53.26:389
   1477 10.44.112.234:53
   1580 10.44.112.233:53
   2046 172.74.1.8:17533
   2393 10.43.144.136:389
   2395 10.47.144.151:389
   3655 172.74.1.44:443

 

Maximum Connections per VIP (really just another way to get the same results)

tmsh show sys connection   | egrep -v 'T|S'  | awk '{print $2}' | cut -d: -f 1 |sort -n | uniq -c | sort -n

 

Share this post


Link to post
Share on other sites

×
×
  • Create New...