This is not specifically on-topic for Asterisk, but I have found on many occasions while working with Asterisk that it would have been very handy to be able to measure, with some precision, the bandwidth being used by a particular host, port, or combination of the two.


So, I went searching for various tools, none of which were what I wanted. They either were too clever, or too limited in their abilities.

However, someone forwarded the link to this tool to me about an hour ago, and I've been thrilled that it does _exactly_ what I want. I can use a BPF-style filter to monitor exactly what I'd like to watch, and it hands back results to me in "real time" down to a one-second interval. Sometimes, a small program can make me very happy, and I suppose after a morning full of various system problems I'm overly happy have something that works and does just what I want it to.

This is useful for checking to see how much bandwidth a codec _really_ uses, or seeing what your total usage is between two IAX hosts, or pretty much anything that requires live examination of ethernet segment traffic.

http://s-tech.linux-pl.com/bmtools/


[EMAIL PROTECTED] bmtools-0.71]# ./rate -r 1 -f 'host 10.0.1.3 and not port ssh' -> Currently 263.05 Bps/3.01 pps, Average: 263.05 Bps/3.01 pps -> Currently 2706.00 Bps/17.00 pps, Average: 1486.97 Bps/10.02 pps -> Currently 588.00 Bps/6.00 pps, Average: 1186.92 Bps/8.68 pps -> Currently 440.00 Bps/4.00 pps, Average: 1000.00 Bps/7.51 pps -> Currently 440.00 Bps/4.00 pps, Average: 887.91 Bps/6.81 pps -> Currently 2080.00 Bps/16.00 pps, Average: 1086.72 Bps/8.34 pps -> Currently 1282.00 Bps/9.00 pps, Average: 1114.64 Bps/8.43 pps -> Currently 10385.00 Bps/20.00 pps, Average: 2274.01 Bps/9.88 pps ^C


JT


_______________________________________________
Asterisk-Users mailing list
[EMAIL PROTECTED]
http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to