[BusyBox] I need help BAD....
Thomas Lundquist
lists at zelow.no
Fri Jan 19 09:09:19 UTC 2001
On Thu, Jan 18, 2001 at 08:13:48PM -0500, Tom Cameron wrote:
> Hello all,
> Recently I have been building a firewall system that will, hopefully, turn
> out to be a fairly turn-key solution for many of my customers. I have been
> working on something recently, which I can NOT find any good information
> regarding...and so I rely on the good help of the community.
> How do I go about getting "traffic" statistics from the /proc structure for
> an ethernet, ppp, or any other type of communication device? Should I even
> be looking at /proc? There are many monitoring programs out there that can
> tell you such information...does anyone know how they work and/or where I
> can find the sources so that I may learn?
> In the end, I am hoping to create a "client" for LCDProc that will give
> current bandwidth utilization for communication devices (eth0 - ethN, ppp0 -
> pppN, etc), so I am hoping I can donate my resources back to the community.
> Any help provided is, as always, GREATLY appreciated, and I thank you all in
> advance!
/proc/net/dev is the place to look.
I found "bwm" through Freshmeat, it was a simple example on how to use it.
somewhere I saw a perl oneliner also using /proc/net/dev so it's
obvisouly the place to look.
Thomas.
More information about the busybox
mailing list