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 - [email protected]
Send requests to [email protected]
or go to http://lists.graemef.net/mailman/listinfo/lvs-users

Reply via email to