Ethereal-users: Re: [Ethereal-users] ~ Ethereal - Problem with Tools ~

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jerry Talkington <jtalkington@xxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 30 Jan 2004 18:16:32 -0800
On Fri, Jan 30, 2004 at 09:50:55AM +0000, bharath sridharan wrote:
> 
>            From the Tools : Protocol Hierarchy Statistics, I am able to 
> view the number of bytes under FTP Data. Is there any way by which I can 
> make Ethereal to transfer the No. of bytes to a billing program as soon as 
> I stop capturing the packets?

Well, if you save to a file named capture.file
tethereal -r capture.file -z io,phs -R tcp.port==0
will display a neat little table of protocol statistics on the command
line, that you could feed to a perl script or such, but why would you
want to do that?  You'd have to capture every packet in order to find
out how much data is being transferred, which could make the capture
file several times bigger that the actual ftp server...

You're probably going to be much better off using some sort of log file
analyzer, like AWStats (free) or Sawmill (commercial.)

-- 
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762