Hello,
I am using the interface speed to compute the % utilization of a network interface, but it does not seem to work on Linux.
This is the code that returns -1
ifstat = sigar.getNetInterfaceStat(ifName);
speed = ifstat.getSpeed();
This seems to work on Windows 32/64, Solaris, but not on Linux.
I was wondering if this is a limitation of the OS, or the SIGAR API.
In the documentation, it shows
Supported Platforms: Undocumented.
but list
System equivalent commands:
AIX:
Darwin:
FreeBSD:
HPUX: /usr/sbin/lanadmin -g mibstats 0, netstat -i
[b]Linux: ifconfig[/b]
Solaris:
Win32:
Thanks,
Jean
|