[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: program needed
On Mon, 30 Nov 1998, Hetz Ben Hamo wrote:
> Does anyone know of a good program for Linux which can show how much
> bandwidth a computer or a group of computers used? (including all TCP/UDP
> ports)?
If you try to write one (god forbid) look at ifconfig (i.e. run ifconfig).
You also need a clock. Can be done in Perl. The data for ifconfig is
coming from /proc/net and can be read by a C program for example (warning:
no seek()s in /proc, just sequential reading).
Peter