LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[CLUG] PPP statistics

[CLUG] PPP statistics

Donncha O Caoimh donncha.ocaoimh at tradesignals.com
Sat Sep 8 15:50:59 IST 2001


Robert Heffernan wrote:
> 
> another one for you scripting people, if you would
> 
> the command pppstats gives various statistics about what pppd has been doing
> (as I'm sure you all know, and as the nae would suggest)
> I want to be able to have a script that would tell me only two of these
> stastics - the number of bytes sent and the number recieved.
> How would I do this?

pppstats -w 1 | awk '{print $1" "$10"\n"}'

Probably won't work coz I can never remember awk syntax. Play with the
"cut" command too.

> 
> also - having been used to connecting to the net via windows I'm used to
> knowing the connection speed.  Is there any way of finding out what speed
> connection to the net pppd has established?

Configure your modem to return that info in the "CONNECT" string and
look at /var/log/messages if you have debugging on..

> 
> Also - how does one find out your ip address on the net?

/sbin/ifconfig|grep ppp0


I'm not at a machine with a modem right now so take the above as simply
a starting point.

Donncha.




More information about the Cork mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell