one method, could be using tcpdump running in the background set to
monitor only certain IP addresses (defined in a file), and piping the
output to a FIFO file, as well have another (PERL) program in the
background reading from the FIFO file, strip out the IP and packet length
have a filename in a directory named by the IP address, and the contents
could be the total packet size, keep adding the number, and rewriting.
T0 monitor bandwidth, cat directory *, will show the filename (IP)
and the contents (total bandwidth).
To reset the bandwidth, just delete the filename (IP address), and it will
then reset to 0. To clear all the bandwidth, (rmdir ; mkdir).
One method. What is nice, since tcpdump is writing to a FIFO file, the
output of tcpdump never gets larger than the max length of a FIFO file.
As long as the PERL program keeps emptying the pipe :)
George
>-----Original Message-----
>From: Vicki Edwards [mailto:vedwards blueridge net]
>Sent: Tuesday, November 26, 2002 3:00 PM
>To: enigma-list redhat com
>Subject: Re: Monitor IP Traffic
>
>
>Thanks. I need to be able to tell how much bandwidth is being
>used by ip
>address. Say I have a range of ip addresses in a pool, I
>would like to be
>able to see which ip address out of that pool is using the
>most bandwidth
>and how much they are using. Is that possible? Thanks, Vicki
>
>
>
>José González wrote:
>
>> "Ethereal" can help you. Look in the R.H. disks instalation
>and install
>> the package.
>>
>> Vicki Edwards wrote:
>>
>> >I need a good tool for monitoring ip traffic. Any good suggestions?
>> >Thanks, Vicki
>> >
>> >
>> >
>> >_______________________________________________
>> >enigma-list mailing list
>> >enigma-list redhat com
>> >https://listman.redhat.com/mailman/listinfo/enigma-list
>> >
>> >
>> >
>>
>> --
>> José Gpe. González García.
>> Informática.
>> 38180891 Tel. Directo
>>
>> El empresario que tiene una visión profunda de su realidad
>> puede alcanzar con mayor claridad sus sueños.
>> Exión... la forma más amigable de controlar tu negocio
>> P r o x i m a m e n t e .
>> www.compac.com.mx
>>
>> Computación en Acción
>> Soñar. Poder. Crecer
>>
>> _______________________________________________
>> enigma-list mailing list
>> enigma-list redhat com
>> https://listman.redhat.com/mailman/listinfo/enigma-list
>
>
>
>_______________________________________________
>enigma-list mailing list
>enigma-list redhat com
>https://listman.redhat.com/mailman/listinfo/enigma-list
>