From: Todd Benson Date: 2008-04-03T00:11:45+09:00 Subject: Re: Monitoring bandwidth On Wed, Apr 2, 2008 at 5:25 AM, 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, > > > -- > Mark Keep in mind, too, that you need the port on the switch/router/gateway that you are on to be promiscuous. Todd