Skip to contentSkip to conversation

nicstat

DISCUSSION James Morris 2 participants 2 messages Jul 14, 2007

Subsystems (2)
lore
Share & tools
lore
#1 lore raw
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