nicstat
Subsystems (2)
This might be of interest (there's a Linux version):
http://blogs.sun.com/timc/entry/nicstat_the_solaris_network_monitoring
Signature · 2 lines
James Morris <[email protected]>
Quoted 3 lines · James Morris
This might be of interest (there's a Linux version):
http://blogs.sun.com/timc/entry/nicstat_the_solaris_network_monitoring
The code has a comment:
* CAVEATS
* It appears there is no way to determine the speed of an interface
* in Linux, so the %Util numbers are bogus at present.
Which is not true. This is easily retriviable through ethtool for any driver supporting it.
Aso I'm a bit surprised that a
"extern int errno;"
still works with a modern libc, folks please always include errno.h instead. Same for the opt* variables for getopt, please always get them through unistd.h