--stats can be used to give you information on the amount of data that has passed through LVS. The following example is for direct routing, thus the outbound packets and bytes are zero.
/sbin/ipvsadm -L -n --stats IP Virtual Server version 1.0.4 (size=4096) Prot LocalAddress:Port Conns InPkts OutPkts InBytes OutBytes -> RemoteAddress:Port TCP 192.168.6.240:http 591 3332 0 520660 0 -> 192.168.6.4:http 26 169 0 24025 0 -> 192.168.6.5:http 565 3163 0 496635 0
--rate can be used to give you information on the rate at which packets are being processed. Again, the example example is for direct routing, thus the outbound packets and bytes are zero.
/sbin/ipvsadm -L -n --rate IP Virtual Server version 1.0.4 (size=4096) Prot LocalAddress:Port CPS InPPS OutPPS InBPS OutBPS -> RemoteAddress:Port TCP 192.168.6.240:http 8 48 0 6877 0 -> 192.168.6.4:http 4 24 0 3446 0 -> 192.168.6.5:http 4 24 0 3431 0
--zero can be used to reset the statistics counters.
/sbin/ipvsadm -L -n --rate
--connection can be used to dump the connection table. This is useful for debuging.
/sbin/ipvsadm -L -n --connection IPVS connection entries pro expire state source virtual destination TCP 01:58 FIN_WAIT 192.168.6.77:46555 192.168.6.240:80 192.168.6.5:80 TCP 01:58 FIN_WAIT 192.168.6.77:46554 192.168.6.240:80 192.168.6.4:80 TCP 00:26 NONE 192.168.6.77:0 192.168.6.240:0 192.168.6.5:0
Copyright © 2000-2005,
Horms
Last Updated: Tue May 17 17:37:25 2005 +0900
Debian is a registered trademark of Software in the Public Interest, Inc.
Red Hat, the Red Hat Shadowman logo and Fedora are
registered trademarks of Red Hat, Inc.
Red Hat may also be refered to as RedHat on this site.
Linux is a registered trademark of Linus Torvalds.
All other trademarks are the property of their respective owners.