Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to know a tool to programmatically measure, in KB/s, the load that each IP applies to a server.

So far, tcpdump does a good job at telling me the amount of packets sent per second, but I believe many are not shown (Downloading at 350KB/s while only outputting 150 packets per second).

Am I doing this the right way? iftop would be PERFECT for this but I need a program that can be interfaced via stdout (without ncurses).

share|improve this question
up vote 5 down vote accepted

you can use tshark (it's a part of wireshark).


tshark -q -z conv,tcp


tshark -q -z conv,udp


tshark -q -z conv,ip

after send ctrl+c you will get something like this

enter image description here

share|improve this answer
Fits my needs precisely, thank you very much! – Daniel S Jan 4 '13 at 23:01

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.