From owner-freebsd-isdn Wed Mar 6 11:16:37 2002 Delivered-To: freebsd-isdn@freebsd.org Received: from Awfulhak.org (gw.Awfulhak.org [217.204.245.18]) by hub.freebsd.org (Postfix) with ESMTP id 2B94C37B402 for ; Wed, 6 Mar 2002 11:16:31 -0800 (PST) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [fec0::1:12]) by Awfulhak.org (8.11.6/8.11.6) with ESMTP id g26JGS540296; Wed, 6 Mar 2002 19:16:28 GMT (envelope-from brian@freebsd-services.com) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.12.2/8.12.2) with ESMTP id g26JGRH6030505; Wed, 6 Mar 2002 19:16:27 GMT (envelope-from brian@freebsd-services.com) Message-Id: <200203061916.g26JGRH6030505@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Gary Jennejohn Cc: "Angelo a.k.a shagy" , freebsd-isdn@FreeBSD.ORG Subject: Re: checking line status In-Reply-To: Message from Gary Jennejohn of "Mon, 04 Mar 2002 21:23:35 +0100." <200203042023.g24KNZil002991@peedub.jennejohn.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30500.1015442186.1@hak.lan.Awfulhak.org> Date: Wed, 06 Mar 2002 19:16:27 +0000 From: Brian Somers Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org > "Angelo a.k.a shagy" writes: > > Greetings, I am using a Fritz isdn card (using > > user-land ppp) with a 128K connection. > > > > I was wondering how can I check to see if the second > > line is active or not, or the first line for that > > matter. > > > > I used to have a TA which had nice little lights for > > each line. I was able see when either line was up or > > down :) > > > > ``show links'' maybe ? Read the ppp manpage, there are a lot > of show commands. > > --- > Gary Jennejohn / garyj@jennejohn.org gj@freebsd.org FWIW I installed a crude-but-useful cgi program at a customers site - it interrogates ppp (via pppctl) and publishes the information on a web site. Works quite well.... -- Brian http://www.freebsd-services.com/ Don't _EVER_ lose your sense of humour ! #! /bin/sh PAGE=/cgi-bin/status.cgi cat < Internet connection status
$(pppctl /var/run/ppp-adsl show links)
  
$(pppctl /var/run/ppp-adsl show ipcp | tail -6)
  
eof To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message