]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - share/man/man5/remote.5
MFV r367082:
[FreeBSD/FreeBSD.git] / share / man / man5 / remote.5
1 .\" Copyright (c) 1983, 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. Neither the name of the University nor the names of its contributors
13 .\"    may be used to endorse or promote products derived from this software
14 .\"    without specific prior written permission.
15 .\"
16 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
17 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
20 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 .\" SUCH DAMAGE.
27 .\"
28 .\"     @(#)remote.5    8.1 (Berkeley) 6/5/93
29 .\" $FreeBSD$
30 .\"
31 .Dd October 20, 2003
32 .Dt REMOTE 5
33 .Os
34 .Sh NAME
35 .Nm remote
36 .Nd remote host description file
37 .Sh DESCRIPTION
38 The systems known by
39 .Xr tip 1
40 and their attributes are stored in an
41 .Tn ASCII
42 file which
43 is structured somewhat like the
44 .Xr termcap 5
45 file.
46 Each line in the file provides a description for a single
47 .Em system .
48 Fields are separated by a colon (``:'').
49 Lines ending in a \e character with an immediately following newline are
50 continued on the next line.
51 .Pp
52 The first entry is the name(s) of the host system.
53 If there is more
54 than one name for a system, the names are separated by vertical bars.
55 After the name of the system comes the fields of the description.
56 A field name followed by an `=' sign indicates a string value.
57 A field name followed by a `#' sign indicates a numeric value.
58 .Pp
59 Entries named ``tip*'' and ``cu*'' are used as default entries by
60 .Xr tip 1 ,
61 and the
62 .Xr cu 1
63 interface to
64 .Nm tip ,
65 as follows.
66 When
67 .Nm tip
68 is invoked with only a phone number, it looks for an entry
69 of the form ``tip300'', where 300 is the data rate with
70 which the connection is to be made.
71 When the
72 .Nm cu
73 interface is used, entries of the form ``cu300'' are used.
74 .Sh CAPABILITIES
75 Capabilities are either strings (str), numbers (num), or boolean
76 flags (bool).
77 A string capability is specified by
78 .Em capability Ns Ar = Ns Em value ;
79 for example, ``dv=/dev/harris''.
80 A numeric capability is specified by
81 .Em capability Ns Ar # Ns Em value ;
82 for example, ``xa#99''.
83 A boolean capability is specified by simply listing the capability.
84 .Bl -tag -width indent
85 .It Cm \&at
86 (str)
87 Auto call unit type.
88 .It Cm \&br
89 (num)
90 The data rate (bits per second) used for communications on the
91 serial port.
92 When a modem is used, the data rate used to communicate
93 with the remote modem may be different than this rate.
94 This is a decimal number.
95 The default rate is 9600 bits per second.
96 .It Cm \&cm
97 (str)
98 An initial connection message to be sent to the remote host.
99 For example, if a host is reached through a port selector, this
100 might be set to the appropriate sequence required to switch to the host.
101 .It Cm \&cu
102 (str)
103 Call unit if making a phone call.
104 Default is the same as the `dv' field.
105 .It Cm \&di
106 (str)
107 Disconnect message sent to the host when a disconnect is requested by
108 the user.
109 .It Cm \&du
110 (bool)
111 This host is on a dial-up line.
112 .It Cm \&dv
113 (str)
114 .Ux
115 device(s) to open to establish a connection.
116 If this file refers to a terminal line,
117 .Xr tip 1
118 attempts to perform an exclusive open on the device to ensure only
119 one user at a time has access to the port.
120 .It Cm \&el
121 (str)
122 Characters marking an end-of-line.
123 The default is
124 .Dv NULL .
125 `~' escapes are only
126 recognized by
127 .Nm tip
128 after one of the characters in `el', or after a carriage-return.
129 .It Cm \&fs
130 (str)
131 Frame size for transfers.
132 The default frame size is equal to
133 .Dv BUFSIZ .
134 .It Cm \&hd
135 (bool)
136 The host uses half-duplex communication, local echo should be performed.
137 .It Cm \&ie
138 (str)
139 Input end-of-file marks.
140 The default is
141 .Dv NULL .
142 .It Cm \&oe
143 (str)
144 Output end-of-file string.
145 The default is
146 .Dv NULL .
147 When
148 .Nm tip
149 is transferring a file, this
150 string is sent at end-of-file.
151 .It Cm \&pa
152 (str)
153 The type of parity to use when sending data
154 to the host.
155 This may be one of ``even'',
156 ``odd'', ``none'', ``zero'' (always set bit 8 to zero),
157 ``one'' (always set bit 8 to 1).
158 The default is even parity.
159 .It Cm \&pn
160 (str)
161 Telephone number(s) for this host.
162 If the telephone number field contains an @ sign,
163 .Nm tip
164 searches the file
165 .Pa /etc/phones
166 file for a list of telephone numbers (see
167 .Xr phones 5 ) .
168 .It Cm \&tc
169 (str)
170 Indicates that the list of capabilities is continued in the named
171 description.
172 This is used primarily to share common capability information.
173 .El
174 .Sh FILES
175 .Bl -tag -width /etc/remote -compact
176 .It Pa /etc/remote
177 The
178 .Nm
179 host description file resides in
180 .Pa /etc .
181 .El
182 .Sh EXAMPLES
183 Here is a short example showing the use of the capability continuation
184 feature.
185 It defines a 56k modem connection on the first serial port at 115200
186 bits per second, no parity using the Hayes command set with standard
187 line editing and end of file characters.
188 The arpavax entry includes everything in the UNIX-57600 entry plus
189 the phone number for arpavax (in this case an @ character so that it
190 is retrieved from the environment).
191 .Bd -literal
192 UNIX-57600:\e
193 :dv=/dev/cuau0:el=^D^U^C^S^Q^O@:oe=^D:du:at=hayes:br#115200:pa=none:
194 arpavax|ax:\e
195 :pn=\e@:tc=UNIX-57600
196 .Ed
197 .Sh SEE ALSO
198 .Xr cu 1 ,
199 .Xr tip 1 ,
200 .Xr phones 5
201 .Sh HISTORY
202 The
203 .Nm
204 file format appeared in
205 .Bx 4.2 .
206 .Sh BUGS
207 The
208 .Xr tip 1
209 utility uses its own notion of the serial ports data rate rather than the
210 system default for a serial port.