lifstat is a linux utility that reads /proc/net/dev and reports input and output statistics for available network interfaces over a repeating time inteval similar to the BSD 'netstat -i' command.
usage:
$ lifstat in out iface bytes pkts err bytes pkts err lo 672 6 0 672 6 0 eth0 420 4 0 700 8 0 ppp0 92 1 0 92 1 0 lo 672 6 0 672 6 0 eth0 420 6 0 700 12 0 ppp0 78 1 0 106 1 0 ^C
the exciting new "bandwidth mode":
$ lifstat -b in out total iface kbytes kbytes kbytes KB/s err coll lo 3 3 7 1 0 0 eth0 9 0 10 2 0 0 virbr0 0 0 0 0 0 0 lo 5 5 10 2 0 0 eth0 6 0 6 1 0 0 virbr0 0 0 0 0 0 0 lo 5 5 10 2 0 0 eth0 342 26331 26674 5334 0 0 virbr0 0 0 0 0 0 0 ^C
Please feel free to let me know if you find this program useful or if you have any problems with it.
build from git:
git clone git://github.com/fsfiii/lifstat.gitor
git clone http://github.com/fsfiii/lifstat.gitthen
cd lifstat make && make install
Download:
lifstat 20100318 source
lifstat 20100318 Fedora 12 x86_64 RPM
lifstat 20100318 RHEL5/CentOS5 x86_64 RPM
lifstat 20100318 Source RPM
Previous Versions:
lifstat 20100304 source
lifstat 20100304 Fedora 12 x86_64 RPM
lifstat 20100304 Source RPM
lifstat 20100228 source
lifstat 20100228 Fedora 12 x86_64 RPM
lifstat 20100228 RHEL5/CentOS5 x86_64 RPM
lifstat 20100228 Source RPM
lifstat 2010-02-27 source
lifstat 2006-10-31 source
lifstat 2003-08-23 source
lifstat 2003-08-23 debian package
lifstat 2003-08-23 debian powerpc package
Frank S. Fejes III
frank at fejes dot net
last modified: 2010-03-22
home