xref: /netbsd-src/share/man/man5/remote.5 (revision 527132cc8c3ee5aa2cf55eb8f430891fac4b6587)
1*527132ccSfcambus.\"	$NetBSD: remote.5,v 1.13 2020/08/29 13:32:27 fcambus Exp $
2b5930afcSjtc.\"
3b5930afcSjtc.\" Copyright (c) 1983, 1991, 1993
4b5930afcSjtc.\"	The Regents of the University of California.  All rights reserved.
561f28255Scgd.\"
661f28255Scgd.\" Redistribution and use in source and binary forms, with or without
761f28255Scgd.\" modification, are permitted provided that the following conditions
861f28255Scgd.\" are met:
961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright
1061f28255Scgd.\"    notice, this list of conditions and the following disclaimer.
1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright
1261f28255Scgd.\"    notice, this list of conditions and the following disclaimer in the
1361f28255Scgd.\"    documentation and/or other materials provided with the distribution.
14075022b3Sagc.\" 3. Neither the name of the University nor the names of its contributors
1561f28255Scgd.\"    may be used to endorse or promote products derived from this software
1661f28255Scgd.\"    without specific prior written permission.
1761f28255Scgd.\"
1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2161f28255Scgd.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2861f28255Scgd.\" SUCH DAMAGE.
2961f28255Scgd.\"
30b5930afcSjtc.\"     @(#)remote.5	8.1 (Berkeley) 6/5/93
3161f28255Scgd.\"
32258cf0abSroy.Dd April 5, 2012
3361f28255Scgd.Dt REMOTE 5
347a1aea16Sgarbled.Os
3561f28255Scgd.Sh NAME
3661f28255Scgd.Nm remote
3761f28255Scgd.Nd remote host description file
3861f28255Scgd.Sh DESCRIPTION
3961f28255ScgdThe systems known by
4061f28255Scgd.Xr tip 1
4161f28255Scgdand their attributes are stored in an
4261f28255Scgd.Tn ASCII
4361f28255Scgdfile which
44*527132ccSfcambusis structured as described by
45258cf0abSroy.Xr capfile 5 .
46fa72f5deSfairEach line in the file provides a description for a single
47fa72f5deSfair.Em system .
4871e62d7dSlukemFields are separated by a colon
4971e62d7dSlukem.Pq Dq \&: .
5061f28255ScgdLines ending in a \e character with an immediately following newline are
5161f28255Scgdcontinued on the next line.
5261f28255Scgd.Pp
53fa72f5deSfairThe first entry is the name(s) of the host system.
54fa72f5deSfairIf there is more than one name for a system, the names are separated
55fa72f5deSfairby vertical bars.
56fa72f5deSfairAfter the name of the system comes the fields of the description.
57fa72f5deSfairA field name followed by an `=' sign indicates a string value follows.
58fa72f5deSfairA field name followed by a `#' sign indicates a following numeric value.
5961f28255Scgd.Pp
6071e62d7dSlukemEntries named
6171e62d7dSlukem.Dq tip*
6271e62d7dSlukemand
6371e62d7dSlukem.Dq cu*
6461f28255Scgdare used as default entries by
65fa72f5deSfair.Xr tip 1 ,
6661f28255Scgdand the
67fa72f5deSfair.Xr cu 1
6861f28255Scgdinterface to
69fa72f5deSfair.Xr tip 1 ,
70fa72f5deSfairas follows.
71fa72f5deSfairWhen
72fa72f5deSfair.Xr tip 1
7361f28255Scgdis invoked with only a phone number, it looks for an entry
7471e62d7dSlukemof the form
7571e62d7dSlukem.Dq tip300 ,
7671e62d7dSlukemwhere 300 is the baud rate with
77fa72f5deSfairwhich the connection is to be made.
78fa72f5deSfairWhen the
79fa72f5deSfair.Xr cu 1
8071e62d7dSlukeminterface is used, entries of the form
8171e62d7dSlukem.Dq cu300
8271e62d7dSlukemare used.
8361f28255Scgd.Sh CAPABILITIES
84fa72f5deSfairCapabilities are either strings (str), numbers (num), or boolean flags (bool).
85fa72f5deSfairA string capability is specified by
8671e62d7dSlukem.Em "capability=value" ;
8771e62d7dSlukemfor example,
8871e62d7dSlukem.Dq Li dv=/dev/harris .
89fa72f5deSfairA numeric capability is specified by
9071e62d7dSlukem.Em "capability#value" ;
9171e62d7dSlukemfor example,
9271e62d7dSlukem.Dq Li xa#99 .
93fa72f5deSfairA boolean capability is specified by simply listing the capability.
9461f28255Scgd.Bl -tag -width indent
9561f28255Scgd.It Cm \&at
9661f28255Scgd(str)
9761f28255ScgdAuto call unit type.
9861f28255Scgd.It Cm \&br
9961f28255Scgd(num)
10061f28255ScgdThe baud rate used in establishing
10161f28255Scgda connection to the remote host.
10261f28255ScgdThis is a decimal number.
10361f28255ScgdThe default baud rate is 300 baud.
10461f28255Scgd.It Cm \&cm
10561f28255Scgd(str)
106fa72f5deSfairAn initial connection message to be sent to the remote host.
107fa72f5deSfairFor example, if a host is reached through a port selector, this might
108fa72f5deSfairbe set to the appropriate sequence required to switch to the host.
10961f28255Scgd.It Cm \&cu
11061f28255Scgd(str)
11161f28255ScgdCall unit if making a phone call.
11261f28255ScgdDefault is the same as the `dv' field.
11386b1df4eSmellon.It Cm \&dc
11486b1df4eSmellon(bool)
11586b1df4eSmellonThis host is directly connected, and tip should not expect carrier detect
11686b1df4eSmellonto be high, nor should it exit if carrier detect drops.
11761f28255Scgd.It Cm \&di
11861f28255Scgd(str)
11961f28255ScgdDisconnect message sent to the host when a
12061f28255Scgddisconnect is requested by the user.
12161f28255Scgd.It Cm \&du
12261f28255Scgd(bool)
12361f28255ScgdThis host is on a dial-up line.
12461f28255Scgd.It Cm \&dv
12561f28255Scgd(str)
126dc026e05Sfair.Ux
12761f28255Scgddevice(s) to open to establish a connection.
12861f28255ScgdIf this file refers to a terminal line,
12961f28255Scgd.Xr tip 1
1305b09090eSadattempts to perform an exclusive open on the device to ensure only
13161f28255Scgdone user at a time has access to the port.
13261f28255Scgd.It Cm \&el
13361f28255Scgd(str)
13461f28255ScgdCharacters marking an end-of-line.
13561f28255ScgdThe default is
13661f28255Scgd.Dv NULL .
13761f28255Scgd`~' escapes are only
13861f28255Scgdrecognized by
139fa72f5deSfair.Xr tip 1
14061f28255Scgdafter one of the characters in `el',
14161f28255Scgdor after a carriage-return.
14261f28255Scgd.It Cm \&fs
14361f28255Scgd(str)
14461f28255ScgdFrame size for transfers.
14561f28255ScgdThe default frame size is equal to
14661f28255Scgd.Dv BUFSIZ .
14761f28255Scgd.It Cm \&hd
14861f28255Scgd(bool)
14961f28255ScgdThe host uses half-duplex communication, local
15061f28255Scgdecho should be performed.
151785a5b82Smellon.It Cm \&hf
152785a5b82Smellon(bool)
153785a5b82SmellonUse hardware (RTS/CTS) flow control.
15461f28255Scgd.It Cm \&ie
15561f28255Scgd(str)
15661f28255ScgdInput end-of-file marks.
15761f28255ScgdThe default is
15861f28255Scgd.Dv NULL .
15961f28255Scgd.It Cm \&oe
16061f28255Scgd(str)
16161f28255ScgdOutput end-of-file string.
16261f28255ScgdThe default is
16361f28255Scgd.Dv NULL .
16461f28255ScgdWhen
165fa72f5deSfair.Xr tip 1
16661f28255Scgdis transferring a file, this
16761f28255Scgdstring is sent at end-of-file.
16861f28255Scgd.It Cm \&pa
16961f28255Scgd(str)
17061f28255ScgdThe type of parity to use when sending data
171fa72f5deSfairto the host.
17271e62d7dSlukemThis may be one of
17371e62d7dSlukem.Sy even ,
17471e62d7dSlukem.Sy odd ,
17571e62d7dSlukem.Sy none ,
17671e62d7dSlukem.Sy zero
17771e62d7dSlukem(always set bit 8 to zero),
17871e62d7dSlukem.Sy one
17971e62d7dSlukem(always set bit 8 to one).
180fa72f5deSfairThe default is even parity.
18161f28255Scgd.It Cm \&pn
18261f28255Scgd(str)
18361f28255ScgdTelephone number(s) for this host.
184fa72f5deSfairIf the telephone number field contains an @ sign,
185fa72f5deSfair.Xr tip 1
18661f28255Scgdsearches the file
18761f28255Scgd.Pa /etc/phones
18861f28255Scgdfile for a list of telephone numbers;
189fa72f5deSfairsee
190fa72f5deSfair.Xr phones 5 .
19161f28255Scgd.It Cm \&tc
19261f28255Scgd(str)
193fa72f5deSfairIndicates that the list of capabilities is continued in the named
194fa72f5deSfairdescription.
195fa72f5deSfairThis is used primarily to share common capability information.
19661f28255Scgd.El
19761f28255Scgd.Pp
19861f28255ScgdHere is a short example showing the use of the capability continuation
19961f28255Scgdfeature:
20061f28255Scgd.Bd -literal
20161f28255ScgdUNIX-1200:\e
20261f28255Scgd:dv=/dev/cau0:el=^D^U^C^S^Q^O@:du:at=ventel:ie=#$%:oe=^D:br#1200:
20361f28255Scgdarpavax|ax:\e
20461f28255Scgd:pn=7654321%:tc=UNIX-1200
20561f28255Scgd.Ed
20661f28255Scgd.Sh FILES
20761f28255Scgd.Bl -tag -width /etc/remote -compact
20861f28255Scgd.It Pa /etc/remote
20961f28255ScgdThe
21061f28255Scgd.Nm remote
21161f28255Scgdhost description file
21261f28255Scgdresides in
21361f28255Scgd.Pa /etc .
21461f28255Scgd.El
21561f28255Scgd.Sh SEE ALSO
21661f28255Scgd.Xr tip 1 ,
21761f28255Scgd.Xr phones 5
21861f28255Scgd.Sh HISTORY
21961f28255ScgdThe
22061f28255Scgd.Nm
22161f28255Scgdfile format appeared in
22261f28255Scgd.Bx 4.2 .
223