Re: Introduction.
On Sun, Oct 22, 2000 at 02:31:18AM -0500, Jeremy Gaddis wrote:
> > Probably wan't to make sure you've got an address. Here's one variant.
> >
> > $ /sbin/ifconfig ppp0 | grep 'inet addr:' | sed 's=.*inet
> > addr\:\([0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\).*=\1='
> >
> > That's all one line. It shouldn't return anything if you don't have an
> > inet addr for ppp0. Otherwise, it'll return the address.
>
> #!/bin/sh
> if [ -e /var/run/ppp0.pid ] ; then
> echo "Your PPP connection is up."
> else
> echo "Your PPP connection is down."
> fi
>
> HTH.
>
> -jg
>
> --
> Jeremy L. Gaddis <jlgaddis@blueriver.net>
>
>
The above script works fine .....
A third option is to use "pon" itself with some
dedicated program for monitoring the connections.
There is a nice program which has come out quite
recently called "pppstatus" which I got from the
freshmeat.net links (author: Gabriel Montenegro)
This is a nice console based program,which gives
you all the functions you need to monitor an ISP
line. Features include connect notification, IP
address, current speed, top speed, online time,
Tx and Rx packets, bytes received/ transmitted and
errors.You can have this running constantly either
on a console or on an x-term throughout your net
sojourn.
I can mail the source tarball in personal mail
(13322 bytes).
USM Bish
Reply to: