Re: Netstat & Transfer rate in Kbps
From: Nicholas Dronen (ndronen_at_io.frii.com)
Date: 09/28/03
- Next message: Dr. David Kirkby: "Boot error message - 0517 SYNCVG ROOTVG"
- Previous message: Nicholas Dronen: "Re: Socket Programming Book Recommendations"
- In reply to: AIX-Admin: "Re: Netstat & Transfer rate in Kbps"
- Next in thread: *************: "Re: Netstat & Transfer rate in Kbps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 28 Sep 2003 16:42:19 GMT
AIX-Admin <right_logic@yahoo.com> wrote:
AA> ************* <aixman@attbi.com> wrote in message news:<3F759044.77ADC4B4@attbi.com>...
>> topas will show you KB/sec
>>
>>
>>
>> AIX-Admin wrote:
>>
>> > How do I get the transfer rate in KB per second from the output of the
>> > netstat command?
What do you mean by transfer rate? The rate that data are actually
going through the pipe? Or the theoretical throughput as represented
by the speed of the media itself?
If you want media speed, use netstat -v (IIRC -- might be -V) or
entstat. If you want the rate of actual data transmission, store
the bytes-transferred count (from netstat -ni) for an interface
into a variable, sleep a few seconds, get the same field from netstat
again, subtract the first one from the second one, and divide by
the number of seconds the process slept between invocations of
netstat.
Regards,
Nicholas
-- "Why shouldn't I top-post?" http://www.aglami.com/tpfaq.html "Meanings are another story." http://www.ifas.org/wa/glossolalia.html
- Next message: Dr. David Kirkby: "Boot error message - 0517 SYNCVG ROOTVG"
- Previous message: Nicholas Dronen: "Re: Socket Programming Book Recommendations"
- In reply to: AIX-Admin: "Re: Netstat & Transfer rate in Kbps"
- Next in thread: *************: "Re: Netstat & Transfer rate in Kbps"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]