Establish an asynchronous connection with a remote system for use by the PPP (Point to Point Protocol) subsystem.
pppdial [ -t TimeOut ] [ -v ] [ -d VerboseFile ] -f ChatFile
The pppdial command provides the capability to establish a connection with a remote system over an asynchronous device. It is used with the pppattachd daemon as the means for carrying out the dialog with modems and remote systems to the point where PPP frames should be sent. The pppdial command uses standard input (stdin) and standard output (stdout) as the devices over which the dialog occurs.
Errors and messages are logged using the syslog facility.
This command returns the following exit values:
0 | Successful completion. |
!0 | An error occurred. |
To establish a connection with a remote AIX system enter on the command line in one line:
/usr/sbin/pppattachd client /dev/tty0 connect "/usr/sbin/pppdial -v -f /home/pppuser/dialer.file"
The ChatFile named /home/pppuser/dialer.file contains:
'' atdt4311088 CONNECT \\d\\n ogin pppuser ssword pppuserpwd
'' Expect a nul string atdt4311088 Send the modem the dial command 4311088 is the phone number to dial CONNECT Expect connect from the modem \\d\\n Delay for 1 second then send a new line ogin Expect the string ogin pppuser Send the string pppuser pppuser is the user id on the remote system ssword Expect the string ssword pppuserpwd Send the string pppuserpwd pppuserpwd is the password of the user pppuser on the remote system
The remote system must have a user pppuser defined with a password pppuserpwd and a $HOME/.profile containing:
exec pppattachd server 2>/dev/null
This is a very simplistic example. The example requires that the PPP subsystem is running on both the client and server (or remote) system. The example requires that the client system have a modem defined on /dev/tty0. The ChatFile contains the number 4311088 to dial. The remote system must also have a user defined with a password and a .profile which starts a PPP attachment on the remote system. The device (/dev/tty0), phone number, user, user password and mechanism starting the PPP attachment are variable and should reflect the current values on the server system.
/usr/sbin/pppdial | Contains the pppdial command. |
The pppattachd daemon, pppcontrold daemon.
The syslog subroutine.
Asynchronous Point-to-Point Protocol (PPP) Subsystem Overview in AIX Version 4.3 System Management Guide: Communications and Networks.