Home
Developer Resources
QNX RTOS v4
QNX RTOS v4 Knowledge Base

QNX RTOS v4 Knowledge Base

Foundry27
Foundry27
QNX RTOS v4 project
Resources

QNX RTOS v4 Knowledge Base

Title Debugging a pppd serial negotiation
Ref. No. QNX.000004752
Category(ies) Network
Issue Is there a way to debug a pppd serial negotiation?






Solution Yes, debugging connection negotiations can be done by doing the following:

1) Running syslogd
  - Edit the /etc/syslog.conf file to look like this:
  *.*    /tmp/syslog
 
  - Confirm that there is a /tmp directory and that there is a "syslog" file existing in the directory.  If the file does not exist, simply run "touch syslog" to create it.

  - Run syslogd

  syslogd &

2) Test syslog by typing the following:
  logger test
 
  -now check the syslog file to see if "test" was entered into the syslog.

  cat /tmp/syslog

  There should be a "test" in the output from the syslog file.  If not recheck your syslog configuration.

3) Run pppd with the debug option turned on:
  /usr/ucb/pppd debug &

  The ppp negotiations will be placed in the /tmp/syslog file, when a client attempts to connect to the server.  This is just a text file that can be opened from any text editor.