[lvs-users] how to get ActiveConn value
Graeme Fowler
graeme at graemef.net
Fri Nov 12 11:58:21 GMT 2010
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
More information about the lvs-users
mailing list