[plug] Network/Modem related questions

Onno Benschop onno at itmaze.com.au
Sun Jul 3 20:10:50 WST 2005


Timothy White wrote:

>Hi. I'm doing a little bit of programming atm and need to find out how
>to get some realtime information about a ppp connection.
>Mainly I need current transfer rates (up and down) and it'd be nice to
>also have connection time and total transferred.
>It all needs to be easy to use as it's all being used in scripts. 
>I know that /proc/net/dev has total transmitted and received packets
>and bytes so if I sampled it and new the time between sampling I can
>get an average. Is that how other people do it? Would that be a little
>CPU intensive?
>  
>
Uhm, doesn't pppstats give you all that?

-- 
Onno Benschop

Connected via Optus B3 at S34°45'36.5" - E139°00'08.7" (Mount Pleasant, SA)
--
()/)/)()        ..ASCII for Onno..
|>>?            ..EBCDIC for Onno..
--- -. -. ---   ..Morse for Onno..

Proudly supported by Skipper Trucks, Highway1, Concept AV, Sony Central, Dalcon
ITmaze   -   ABN: 56 178 057 063   -  ph: 04 1219 8888   -   onno at itmaze.com.au





More information about the plug mailing list