ifstat [-d {dev1 dev2 ...}] [-i {interval}] [-nb] [-DhV]
-b --bits list data sizes in bits rather than bytes -d --device list of specific devices to monitor -D --debug print debugging statements -h --help usage statement (this text) -i --interval seconds between counter dumps -n --no-sum suppress ALL line when watching multiple interfaces -V --version print the version
All options are optional. If -d is omitted it will monitor all interfaces found in /sys/class/net. If -i is omitted it will print the current counter values and exit, just as vmstat and iostat do.
This program also makes no attempt handle counter roll-overs. In the event that this program is running when a counter rolls over to zero it will print the same delta as the previous line but then start calculating the deltas as normal thereafter.
Finally, this program makes no attempt to handle ephemeral devices. In the event that network devices being monitored disappear it will simply spit out a lot of ugly Perl'ish warnings which will certainly screw up the formatted output. Furthermore, if you're monitoring all available interfaces it will not pick up new interfaces that appear after the program started.
(c) 2007, Arthur Corliss (corliss@digitalmages.com)
Copyright © 1997 - 2016, Arthur Corliss, all rights reserved.