System Administration Guide: Network Services

ProcedureHow to Obtain Debugging Information for Chat Scripts

Use the following procedure for obtaining debugging information from chat and suggestions for clearing common problems. For more information, refer to Common Chat Script Problems.

  1. Become superuser on the dial-out machine or assume an equivalent role.

    Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.

  2. Edit the /etc/ppp/peers/peer-name file for the peer to be called.

  3. Add -v as an argument to the chat command that is specified in connect option.

    connect "/usr/bin/chat -v -f /etc/ppp/chat-script-name"
  4. View chat script errors in the file /etc/ppp/connect-errors.

    The following is the main error that occurs with chat.

    Oct 31 08:57:13 deino chat[107294]: [ID 702911] expect (CONNECT)
    Oct 31 08:57:58 deino chat[107294]: [ID 702911] alarm
    Oct 31 08:57:58 deino chat[107294]: [ID 702911] Failed

    The example shows timeout while waiting for a (CONNECT)string. When chat fails, you get the following message from pppd:

    Connect script failed