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

Re: netstat 1



Rudi Starcevic wrote:
Hi,

I have one more FreeBSD to Debian question.

This one has bugged me a little longer than systat.

On FreeBSD when looking for network output/usage I can issue this
command: 'netstat 1'


netstat 1

            input        (Total)           output
   packets  errs      bytes    packets  errs      bytes colls
      2006     0     183296       3583     0    5175802     0
      3010     0     245538       5530     0    8081832     0
      2301     0     213576       4132     0    6010352     0
      2482     0     202934       4530     0    6543280     0

One line printed per second.

From the 'bytes', which is bits per second, column I can see network
output is:

( 6543280 * 8 ) / 1024 / 1024 = 49.92mbps

Err ... I'm pretty sure my above Math is OK .... but even if it is wrong
I need to first get the numbers.

This particular server is on a 100mbps hosting plan so we can see usage
is currently about half.

Is it possible to get similar output from Debian to quick calculate
network output?

Thanks.
Regards,
Rudi.

--
Internet Media Productions



Rudi,

I guess you can use the command "ifstat -T"
Regards,

Koen



Reply to: