ifstat is a tool to report network interface bandwith just like vmstat/iostat do for other system counters.
fstat gathers these statistics from the kernel internal counters, which is highly operating system dependent.
Right now, the following systems are supported:
Linux >= 2.2.0 (through /proc/net/dev file).
FreeBSD >= 2.2 (using the ifmib(4) interface).
Solaris >= 5.6 (using the kstat(3K) interface).
IRIX and OpenBSD (using the SIOCGIFDATA ioctl).
NetBSD and Darwin (using the route(4) sysctl interface).
Other BSDs (using the kvm(3) interface).
Digital Unix (OSF/1), Tru64, and Aix (using the legacy kmem interface).
HP-UX (using the DPLI streams interface).
Win32 native or through Cygwin (using the GetIfTable call).
If the net-snmp (or ucd-snmp) library is available, ifstat can use it to gather statistics from remote equipments (hosts, routers, switches...) or even the local host if a SNMP daemon is running.
ifstat's functionnalities can as a static application. To use it, you just have to pass --enable-library while configuring ifstat.
What's New in This Release:
∑ Digital Unix (OSF/1) and Tru64 support.
∑ AIX support (tested on AIX v4.3).
∑ HP-UX support with DLPI streams interface. (sample code contributed by Jean-Marc Saffroy )
∑ Win32 support (native or with cygwin) with GetIfTable interface. (sample code contributed by Alexandre Raclot )
∑ Use net-snmp-config if present to find out SNMP flags.