So, I got pestered by some of my colleagues in PAE to do a nicstat for Linux, so they can do their testing of networking stuff on Solaris and Linux. It was not too hard - just rip out all the kstat(3) stuff, and put in some code to read /proc/net/dev. I have one bug at the moment though - I do not know how to get the speed of an interface in Linux. If anyone knows this, please fill me in. Source & binary at http://blogs.sun.com/timc/ Regards, Tim -- Tim Cook Performance and Application Engineering <> Sun Microsystems Ph: +1 650 257 4709 Ext: (70) 69841
Tim Cook wrote:> So, > > I got pestered by some of my colleagues in PAE to do a nicstat for > Linux, so they can do their testing of networking stuff on Solaris and > Linux. > > It was not too hard - just rip out all the kstat(3) stuff, and put in > some code to read /proc/net/dev. > > I have one bug at the moment though - I do not know how to get the > speed of an interface in Linux. If anyone knows this, please fill me in. > > Source & binary at http://blogs.sun.com/timc/ > > Regards, > Tim >Cool... I just built it for Linux and works fine. Thanks for the tool. You could use the application ethtool to get the if speed. ethtool ethX |grep Speed Regards Matheos