[lvs-users] how to get ActiveConn value

Suchada Pakapongpan cooky_th at hotmail.com
Sat Nov 13 13:03:49 GMT 2010


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 at graemef.net
> To: lvs-users at linuxvirtualserver.org
> 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 at LinuxVirtualServer.org
> Send requests to lvs-users-request at LinuxVirtualServer.org
> or go to http://lists.graemef.net/mailman/listinfo/lvs-users
 		 	   		  


More information about the lvs-users mailing list