LVS
lvs-users
Google
 
Web LinuxVirtualServer.org

Re: [lvs-users] how to get ActiveConn value

To: <lvs-users@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [lvs-users] how to get ActiveConn value
From: Suchada Pakapongpan <cooky_th@xxxxxxxxxxx>
Date: Sat, 13 Nov 2010 20:03:49 +0700
Hi Graeme,
 
Thank you for your reply.
Yes, there is no option. And I have to use shell script command, It's OK.

Thanks,
Cooky

> From: graeme@xxxxxxxxxxx
> To: lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Date: Fri, 12 Nov 2010 11:58:21 +0000
> Subject: Re: [lvs-users] how to get ActiveConn value
> 
> On Fri, 2010-11-12 at 18:38 +0700, Suchada Pakapongpan wrote:
> > In my LVS has many real server ip address (RIP) and I'd like to get 
> > ActiveConn value of some RIP to calculate.
> > I'd like to know how ipvsadm to get only ActiveConn value by identifying 
> > RIP x.x.x.x ? 
> 
> There is no option to ipvsadm to do that, but SysAdmin 101 would have
> you do something like this:
> 
> For RIP == 192.168.1.2 port 80
> 
> ipvsadm -Lnc | egrep -c "ESTABLISHED.+192.168.1.2:80"
> 
> To make it even more fine-grained, for example if you have many VIPs
> using the same RIPs:
> 
> For For RIP == 192.168.1.2 port 80, VIP == 192.168.0.10 port 80
> 
> ipvsadm -Lnc | egrep -c "ESTABLISHED.+192.168.0.10:80.+192.168.1.2:80"
> 
> Graeme
> 
> 
> _______________________________________________
> Please read the documentation before posting - it's available at:
> http://www.linuxvirtualserver.org/
> 
> LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
> Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
                                          
_______________________________________________
Please read the documentation before posting - it's available at:
http://www.linuxvirtualserver.org/

LinuxVirtualServer.org mailing list - lvs-users@xxxxxxxxxxxxxxxxxxxxxx
Send requests to lvs-users-request@xxxxxxxxxxxxxxxxxxxxxx
or go to http://lists.graemef.net/mailman/listinfo/lvs-users
<Prev in Thread] Current Thread [Next in Thread>