Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Feb 1996 18:19:31 -0700 (MST)
From:      Terry Lambert <terry@lambert.org>
To:        wsantee@wsantee.oz.net (Wes Santee)
Cc:        terry@lambert.org, jerry@border.com, questions@freebsd.org
Subject:   Re: Telling if User PPP is up or down
Message-ID:  <199602160119.SAA03582@phaeton.artisoft.com>
In-Reply-To: <199602160007.QAA05357@wsantee.oz.net> from "Wes Santee" at Feb 15, 96 04:07:23 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> > > Call me bind, BUT, How is this going to tell if the dial-on-demand
> > > feature has the line currently in use.
> > 
> > replace "ppp" with the name of the program that is running the link.
> > 
> > If the program that is there when the link is there is present, then
> > the link is up.
> 
> With the user-process PPP daemon, however, the program can still be
> in memory even if the link is off-line.  It sits there waiting for
> outbound traffic to be generated in which case, it brings up the
> link again. IOW, there is never going to be a time when the program
> that is running the link isn't going to be in the 'ps' listings, even
> if the link is currently off-line.
> 
> Thanks for trying to help out, though.  I (and some others who have
> e-mailed me privately), am still looking for answers if you've got
> 'em!

How about "look at the modem CD light"?

8-).

Or "ifconfig tun0", and if it reports an "inet" line (if it doesn't,
it has never been up), check it for 0.0.0.0 (and make sure it gets
upt back correctly by pppd when it downs...).


					Terry Lambert
					terry@lambert.org
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602160119.SAA03582>