Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to get output during ppp connection?

794 views
Skip to first unread message

Rodolfo Medina

unread,
Dec 29, 2005, 10:47:57 AM12/29/05
to
Excuse this basic question:
when I connect, with '# pppd call my_provider', or '# pon my_provider',
I don't get any output, although the 'debug' option is present
in the file '/etc/ppp/peers/my_provider'.
If I want to see what's happening
(wether the connection is proceeding well, wether it is broken,
or whatever else), I have to type also: '# plog'.

Now, how can I get a verbose and complete output straight out of the
commands 'pppd call' or 'pon'?

At

http://www.cl.cam.ac.uk/Research/SRG/netos/coms/unix.html

I read:

---------------------------------------------------------------------------------
This is a trace from a successful GPRS connection using ppp v2.4.1 and
the scripts linked above, on an Ericsson R520m. (To get this output,
edit /etc/ppp/peers/gprs-eric to add a line with the word 'debug', and
add '-e' to the calls to chat.
drummond$ pppd call gprs-eric
GPRS Modem init: press <ctrl>-C to disconnect
+++ATATQ0V1&C1
OK
ATE1
OK
AT&F
OK
---------------------------------------------------------------------------------
... etcetera.
Now, where shall I put the '-e' option? It is not clear in the above
explanation.
I did many attempts, none of them successful.

Thanks, and excuse again the basicness of my question.

Rodolfo

Unruh

unread,
Dec 29, 2005, 11:33:11 AM12/29/05
to
"Rodolfo Medina" <romeo...@libero.it> writes:

>Excuse this basic question:
>when I connect, with '# pppd call my_provider', or '# pon my_provider',
>I don't get any output, although the 'debug' option is present
>in the file '/etc/ppp/peers/my_provider'.
>If I want to see what's happening
>(wether the connection is proceeding well, wether it is broken,
> or whatever else), I have to type also: '# plog'.

pppd sends its logging output to syslog, daemon log.
place the line
daemon.*;local2.* /var/log/ppplog
into /etc/syslog.conf and then do
killall -1 syslogd

If you want to watch, do
tail -f /var/log/ppplog

>Now, how can I get a verbose and complete output straight out of the
>commands 'pppd call' or 'pon'?

>At

>http://www.cl.cam.ac.uk/Research/SRG/netos/coms/unix.html

>I read:

>---------------------------------------------------------------------------------
>This is a trace from a successful GPRS connection using ppp v2.4.1 and
>the scripts linked above, on an Ericsson R520m. (To get this output,
>edit /etc/ppp/peers/gprs-eric to add a line with the word 'debug', and
>add '-e' to the calls to chat.
>drummond$ pppd call gprs-eric
>GPRS Modem init: press <ctrl>-C to disconnect
>+++ATATQ0V1&C1
>OK
>ATE1
>OK
>AT&F
>OK
>---------------------------------------------------------------------------------
>... etcetera.
>Now, where shall I put the '-e' option? It is not clear in the above
>explanation.
>I did many attempts, none of them successful.

It is -v, not -e.
and the output is sent to syslog with log local2.
Thus the local2 in the syslog.conf file

Rodolfo Medina

unread,
Dec 31, 2005, 3:13:25 AM12/31/05
to
Thanks!
I did as you suggested:

at the end of the file /etc/syslog.conf I put the line

daemon.*;local2.* /var/log/ppplog

, then did

# killall -1 syslogd

and then opened the connection with:

# pon my_provider ; tail -f /var/log/ppplog

, and got the output during the connection.
But in the example reported above, from
http://www.cl.cam.ac.uk/Research/SRG/netos/coms/unix.html
, he just did '# pppd call my_provider',
without 'tail -f ...', and got the output just the same.
How to do so?

Rodolfo

Unruh

unread,
Dec 31, 2005, 10:19:34 AM12/31/05
to
"Rodolfo Medina" <romeo...@libero.it> writes:

>daemon.*;local2.* /var/log/ppplog

>, then did

># killall -1 syslogd

The "tail -f..." is just so you can see it scolling on the screen while it
is happening. Anything posted here is not in that category. the output is
stored in /var/log/ppplog YOu can read it there whenever you wish.


>Rodolfo

Rodolfo Medina

unread,
Jan 1, 2006, 8:33:02 AM1/1/06
to
It seems to be quite fine like this:
in one console, I do:

# tail -f /var/log/syslog

, and in another one:

# pon my_provider

. This way I can watch the output proceeding.
To stop the connection,

# poff my_provider

in the second console.

Rodolfo

Rodolfo Medina

unread,
Jun 28, 2006, 5:25:38 PM6/28/06
to
"Rodolfo Medina" <romeo...@libero.it> writes:

> when I connect, with '# pppd call my_provider', or '# pon my_provider',
> I don't get any output, although the 'debug' option is present
> in the file '/etc/ppp/peers/my_provider'.
> If I want to see what's happening
> (wether the connection is proceeding well, wether it is broken,
> or whatever else), I have to type also: '# plog'.
>
> Now, how can I get a verbose and complete output straight out of the
> commands 'pppd call' or 'pon'?


All I needed was:
in the file `/etc/ppp/peers/my_provider' put the `debug' and `nodetach'
options and edit the chat line like this:

connect "/usr/sbin/chat -v -s -f /etc/chatscripts/my_provider"

or also like this:

connect "/usr/sbin/chat -e -f /etc/chatscripts/my_provider"

. Bye,
Rodolfo

0 new messages