DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
BNU troubleshooting

How cu and uucp work

The cu(1bnu) and uucp(1bnu) commands request connections through the connection server, cs(1Mbnu). When it receives the request, cs performs the tasks necessary to make the connection, such as dialing a phone number through a modem, or connecting cu or uucp to a direct line.

After the connection is made (that is, when the connected message is received), uucp only has the capability to send login requests and passwords. This is known as the login sequence.

On a dialup or direct-connect request, the first thing cs does is select a line:

Devices are defined in /etc/uucp/Devices, and are organized into groups. There is one logical device for each physical serial port on the system.

Many groups can be defined in the Devices file. The purpose for having groups is to limit the number of entries that are searched through in the Devices file for a particular call, and to identify the type of device entry.

You can use group or type names on the command line (as in cu -t type) to search only entries of type type. To establish dialup connections, two of these groups are used: the ACU group and the Direct group.

Once a line is selected, the connection server cs sends characters out on the selected line and waits for a response.

The cs process looks in the /etc/uucp/Dialers file (see Dialers(4bnu)) for an entry that matches the type (or group) of the system being called.

The Dialers entries are arranged by modem type (or direct-connect type) names. There is a hayes entry, for example, and a direct_modem entry (which is used by the modem utility). The ``Connects to:'' field in the Dialup Setup: Device Properties window lists these Dialers file types.

Each entry in the Dialers file starts with a type (which equates to the device type) and a chat script for that particular device type. An entry may say, for example, to use ATDTnumber when dialing the telephone, and to then wait for the signal CONNECT before returning a connected message to the user.

Summary

To summarize, there are two or three files you go through when you make a dialup request.

If you directly specify a line, or just specify a phone number, the connection server gets an entry from the Devices file. On each device entry there is a type or group name that points to an entry in the Dialers file for the chat script.

If you give cs a system name, it first searches the Systems file for the connection type (modem or direct-connect) and then goes to the Devices file to search through the appropriate group(s) of entries for an available line.

Once a line is opened, cs consults the Dialers file for the chat script for the selected device. In this way you get a line and a dialer type for all calls you make.

If you use uucp to transfer files, the connection sequence involves one more step. That is, after the connection server has worked its way through the Dialers entry chat script, it uses the login sequence in the Systems(4bnu) file to attempt to log in to the remote system.


NOTE: Using cu system-name does not invoke a login sequence specified for system-name in /etc/uucp/Systems. See ``Using expect/send strings to troubleshoot uucp'' for more information.


© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 22 April 2004