Is there a terminal command that I can run that will...........
Hi,
Is there a terminal command that I can run that will give me a readout of the upload and download of my network interface (eth0) every few seconds? I've been trying to find something like this but can't. I want it to run in a terminal and not a gui. Can anyone help? thanks Ludwig |
You tried iptraf ? Lets you view different real-time reports for your interfaces depending on what data you're wishing to view.
|
thanks for the info, mate.
Is there a native UNIX command that would do that, rather than a 3rd party program? cheers:newbie: |
As root type:
ifconfig eth0 | grep 'RX bytes' | awk '{print $3 $4}' for total downloaded and ifconfig eth0 | grep 'RX bytes' | awk '{print $7 $8}' for total uploaded. |
thanks mickyg.
However, I'm really looking for a readout that updates every few seconds that tells me the data rate uploaded and downloaded in kB/s Any idea about that? cheers mate :newbie: |
Check out gkrellm:
http://members.dslextreme.com/users/...m/gkrellm.html Edit:Ooops! You ask for a terminal command.... But have you considered how messy this will make your terminal? |
well, I can have several terminals open at once.
The reason I only want terminals is that I have a really low powered box that runs blackbox and runs as an NFS server 24/7. It's too low powered to run KDE or Gnome effectively, so I'd prefer just to run Blackbox and not have any gui's. I would have thought that there must be a unix command that monitors eth0???? |
Quote:
Code:
watch -n 1 "/sbin/ifconfig eth0 | grep 'RX bytes' | awk '{print $3 $4}'" Code:
I would have thought that there must be a unix command that monitors eth0???? |
Quote:
However, if I wanted kb instead of bytes, how would I do that? Cheers Ludwig :) |
you could convert the output if you want
|
sorry to be dumb, but how would you do that?
|
actually, what I've found is that this doesn't work great.
Quote:
That's not what I want. I want the RATE at which things are being downloaded and uploaded. i.e. kb/s Can anyone help me with that????? Cheers Ludwig |
ethstats does exactly what you are looking for. However you will need to install it..
Here is a example of the output.. Code:
Pinky:~# ethstats |
kewl....thanks fur!!!!!!!!!!!!!:D :D :D :D :D
I'll give it a shot............ |
fur,
thanks mate. It works a treat!!!!!! |
All times are GMT -5. The time now is 09:33 PM. |