Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 5 down vote accepted

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

use

tshark -q -z conv,tcp

or

tshark -q -z conv,udp

or

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

 
discard

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.