[plug] tracing ppp logon

Matt Kemner zombie at networx.net.au
Wed Mar 3 08:29:58 WST 1999


On Tue, 2 Mar 1999, Arnold Kaars Sijpesteijn wrote:

> > Try running: tail -f /var/log/messages (or /var/log/syslog)
> I tried that. (had seen it somewhere else) but all that seemed to do 
> was to hang in the window, could not get the prompt back or anything.
> and where will I see the out put?  (I seem to remember to do a man 
> tail as well, but not getting the manpage)

Hi Arnold

You should be able to use control-C to get back to the prompt.
Check for the existence of a file called /var/log/ppp.log - you may find
pppd and chat log their info there. If it's there run "tail -f
/var/log/ppp.log"
If the file is not there, you can edit your /etc/syslog.conf and add the
line:

local2.*			-/var/log/ppp.log
Make sure you seperate the 2 fields by tabs, not spaces.
Then restart syslogd. (find the process id with "ps auwx|grep syslogd",
then type kill -HUP <pid> where the pid is the first number you see.
eg. I get:
root	140  0.0  0.3  980  404  ?  S   Feb 16     9:41  /sbin/syslogd
root  32017  0.0  0.2  848  336  q0 S    08:25     0:00  grep syslogd

The line ending in /sbin/syslogd is the one you want.. The other is just
the grep command we just ran.. The pid is 140 so you run kill -HUP 140
You should now see syslogd start to output pppd and chat info in
/var/log/ppp.log

You will need to change your dialin script to say "chat -v -f
/etc/ppp/networx.chat" for chat to be verbose.  Also, double check you
have your right serial port in that file (eg /dev/ttyS1)
Remember that in Linux, Serial ports start at S0, so what you would call
com1 in DOS/Windows is ttyS0 in Linux, and com2 is ttyS1.

 - Matt



More information about the plug mailing list