From: Michael Fellinger Date: 2008-04-02T20:29:11+09:00 Subject: Re: Monitoring bandwidth On Wed, Apr 2, 2008 at 12:25 PM, Mark wrote: > Hi all, > > Is there some code somewhere (library/script) that I can look at > that will help with the following: > > I would like to monitor *all* traffic along the lines of > http://www.bwmonitor.com/ on whatever network(s) is/are active at the > time. Wireless and/or Ethernet. > > Is there a way to monitor traffic in general moving across say wlan0 > rather than specific protocols/ports (HTTP, FTP, etc)? > > A Ruby solution would be good but Java/Python/Perl/ would be OK as well. > > (The pipe dream was that I was going to try to write something like this > in all the languages above as a way to evaluate each of them). > > (The even bigger pipe dream was that I could expand this to include a > GUI and make it into an open source project eventually. Pretty much > like 'Bandwidth Monitor' shown in the link above.) > > > thanks, Take a look at the ifstat program. ^ manveru