• Aucun résultat trouvé

Editing the Devices File

Dans le document DEC OSF/l (Page 181-185)

UNIX Copy Program 17

17.3 Configuring Remote Communications Links

17.3.1 Editing the Devices File

The Devices file contains information about hardwired, telephone, and TCP/IP communications links. Each entry in the Devices file includes the following fields:

Type

Specifies the type of hardwired or autodialer device.

Line

Specifies the device name for the port.

Line2

Specifies the device name of an 801 ACU (seldom used).

Class

Specifies the transmission speed.

Dialer-Token Pairs

Specifies a particular type of autodialer (modem) and the token (a defined string of characters) that is passed to the dialer.

Note that all fields must be filled in. If no information is relevant for a particular field enter a dash (-) as a placeholder.

The syntax for entries in the Devices file is as follows:

Type Line Line2 Class Dialer-Token Pairs

17.3.1.1 The Type Field

Valid entries for the Type field include:

Direct

ACU

Use this keyword, which must begin with an uppercase D, if your site uses hardwired lines to connect multiple systems.

This keyword is used only by the cu command for a line to a system or modem. A separate entry must be entered for each dial-out line to be used by cu. This does not imply the need for additional dial-out lines, just additional entries in the Devices file.

Use this keyword, which you must type in uppercase letters, if your site

17-4 Manually Setting Up the UNIX-to-UNIX Copy Program

connects multiple systems over the telephone network by using ACUs (autodialers, or modems).

NETWORK

Enter TCP (in uppercase letters), if your site uses TCP/IP. (TCP/IP is the only network currently used with OOCP.)

system name

Enter the name of a particular remote system hardwired to the local system. The system name is the name assigned to each host; for example, host 1.

-17.3.1.2 The Line Field

In the Line field, you should type the device name for the line or port, or the dialer used in the communications link. 0 se the appropriate device name, for example, ttyd1.

17.3.1.3 The Line2 Field

If you entered ACU as the keyword in the Type field, and the autodialer in the Dialer-Token Pairs field is a standard 801 dialer, enter the device name of the 801 ACU in the Line2 field. For example, if the type is ACU and the line is ttydO, the Line2 entry might be ttydl. If the device type is not 801, you must use a dash (-) in this field as a placeholder. The Line2 field is used only to support older modems that require 801-type dialers. The modem is plugged into one serial port, and the 801 dialer is plugged into a separate serial port.

17.3.1.4 The Class Field

For a hardwired line, type the transmission rate of the device connecting the two systems in the Class field. For a telephone connection, enter the speed or baud rate at which the ACU transmits data; for example, 300 or 1200.

Some devices can be used at any speed, in which case you should enter the word Any (note the uppercase A). This entry tells UUCP to match any speed requested in the Sys terns file.

17.3.1.5 The Dialer-Token Pairs Field

For a hardwired connection, enter the word direct in the Dialer-Token Pairs field.

For a telephone connection, enter the type of dialer and the token that is passed to that modem in the Dialer-Token Pairs field. The token is either a telephone number or a predefined string used to reach the dialer.

Manually Setting Up the UNIX-to-UNIX Copy Program 17-5

To specify the dialer entry, enter one of the following:

DECmodemV32

This is a DECmodem V32 modem.

DEC-dmcl

This is a DEC-dmcl language modem.

hayes

This is a Hayes dialer.

trailb

This is a Telebit Trailblazer modem.

scholar

This is a Scholar modem.

scholar-plus 801

This is a Scholar-Plus modem.

This is a standard 801 autodialer, with a separate 2l2-type or 103-type modem.

OTHER DIALERS

These are other dialers that you can specify by including the relevant information in the Dialers file. Some of these include: Penril (penril), Ventel (ventel), Rixon (rixon), Vadic (vadic), and Micom (micom).

NETWORK

This represents a communications network. TCP/IP is the network currently supported by UUCP. Type TCP here if you have also used TCP as the keyword in the Type field.

Each dialer included as part of a Dialer-Token Pairs field in the Devices file must also be included as an entry in the Dialers file.

The Token following the Dialer represents either a complete telephone number (\ D) or a string defined in the Dialers file (\ T). If the token represents a complete telephone number, which is the default, leave this part of the Dialer-Token Pairs field blank. If it is blank, UUCP uses the telephone number listed in the Systems file. Some sites, however, do not include complete telephone numbers in the Systems file. Instead, the entry in that file contains only the last four digits of the number, preceded by a dial-code abbreviation. This abbreviation references the beginning of the phone number (for example, a 3-digit exchange number or an access code) contained in the Dialcodes file.

Note that it is often more efficient to include the complete telephone number in the Systems file.

17-6 Manually Setting Up the UNIX-to-UNIX Copy Program

17.3.1.6 Example Device File Entries

The following example illustrates entries in the Devices file for ACU, direct, and TCP links:

ACU ttydO - 9600 scholar-plus [j]

hostl ttydl - Any direct I2l

TCP - - - TCP [3]

Direct ttydl - 9600 direct ~

[1J

The Type field ( ACU) indicates that this link is made through a modem.

Additional lines with the same type label (in this case, ACU) can be included in the file.

The Line field indicates that this link is to serial port ttydO.

The Line2 field contains a dash (-) as a placeholder.

The C las s field indicates that the transmission rate for this line is 9600 baud.

The Dialer part of the Dialer-Token Pairs field is specified as a Scholar-Plus modem. The Token field is left blank (uses the default \D option), which tells UUCP to use the complete number listed in the Systems file.

I2l

The Type field (host 1) indicates that this link is a direct link to the system has t 1.

The Line field indicates that this link is to serial port ttydl.

The Line2 field contains a dash (-) as a placeholder.

The Class field (Any) indicates that the direct line can transmit at any rate.

The Dialer-Token Pairs field (direct) indicates that this is a direct connection. No dialer is involved.

~ The Type field (TCP) indicates that this link is made using the TCP protocol running on a local area network (LAN).

The Line field contains a dash (-) as a placeholder. No serial port is associated with a TCP link.

The Line2 field contains a dash (-) as a placeholder.

The Class field contains a dash (-) as a placeholder.

The Dialer-Token Pairs field contains TCP.

~ The Type field (Direct) indicates that this link is a direct link.

The Line field indicates that this link is to serial port ttydl.

The Line2 field contains a dash (-) as a placeholder.

Manuallv Settinq Up the UNIX-to-UNIX Copy Program 17-7

The Class field indicates that the transmission rate for this line is 9600 baud.

The Dialer-Token Pairs field (direct) indicates that this is a direct connection. No dialer is involved.

See the Devices(4) reference page for more information on the Devices file.

Dans le document DEC OSF/l (Page 181-185)