Monitor number of bytes transferred to/from IP address on port.

Posted by Mike on Server Fault See other posts from Server Fault or by Mike
Published on 2010-10-28T17:55:17Z Indexed on 2011/01/06 20:56 UTC
Read the original article Hit count: 174

Can anyone recommend a linux command line tool to monitor the number of bytes transferred between the local server and a specified IP address/port.

The equivalent tcpdump command would be:

tcpdump -s 0 -i any -w mycapture.trc port 80 host google.com

which outputs :

46 packets captured
131 packets received by filter
0 packets dropped by kernel

I'd like something similar that outputs:

54 bytes out, 176 bytes in

I'd like it to work on RHEL and be free/open-source. It would be good if there was an existing tool which I was just missing too!

© Server Fault or respective owner

Related posts about linux

Related posts about command-line