[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: program needed



On Mon, Nov 30, 1998 at 10:58:27AM +0000, 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 know, please give me a URL for the site address.

You got several answers, and I have another one. Do it only if the other
solutions given won't work for you - no need to reinvent wheels for nothing.

The information you are looking for is found in /proc/net/dev (I'm using it
in my inactivity detector). It is simple to write a script (perl or
otherwise) that processes that file and gives you the information you
require.
If you want to query hosts, a simple client-server system can be established
in perl, that would send this information over the network.

Implementing this should be straight forward and simple, but only do it if
you have to.

                                                   Nimrod