Niall O Broin wrote:
> On Fri, Mar 08, 2002 at 09:34:05PM +0100, David Neary wrote:
> > I could probably manage the cron scripts - the difficult bit is
> > the bandwidth usage measuring. Any way to do it?
>> Iff you connect to the cable modem via Ethernet and iff you've no other
> devices on your network then cat /proc/net/dev/will show you how much you've
> transmitted/received. If you've more devices, and can't come up with a
> better way, you could install a second Ethernet card just for that connection.
Isn't that reset every time I reboot? Does that mean I have to
set up a script in /etc/rc6.d and rc0.d to save what's there?
That's a bit of a bummer...
Also - I've been thinking. It's a cable modem, so I'm on an
ethernet subnet, right? So am I not in some way downloading
all the ethernet traffic on the subnet, in that it's all
available to me somehow? Does the eth0 "packets received" number
count only packets which were sent to my IP?
I only have lo and eth0, so that solution might be workable, but
it would be a terrible hack (imho)... it's a start, at least :)
E-Mail: bolsh at gimp.org
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!