1 .\" Copyright (c) 2003 Hidetoshi Shimokawa
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
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.
13 .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
14 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 .\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 .\" DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
17 .\" INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 .\" (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
19 .\" SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
21 .\" STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
22 .\" ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
23 .\" POSSIBILITY OF SUCH DAMAGE.
25 .\" $FreeBSD: src/usr.sbin/dconschat/dconschat.8,v 1.5 2004/06/13 18:03:42 ru Exp $
38 .Op Fl C Ar console_port
45 .Op Fl C Ar console_port
53 utility is designed to provide a way for users to access
55 (dumb console device) on a local or remote system.
58 utility interacts with
64 and interacts with the user over TTY or TCP/IP.
69 you have to specify target EUI64 address using the
77 driver communicate using 2 ports, one for the console port and another
81 Users are supposed to access
87 You can specify listen ports for console and
94 The port number 0 has special meaning that
95 current TTY (stdin/stdout) is used instead of TCP/IP.
96 A negative port number will disable the port.
103 sequence to the console port,
104 or send signal to the process.
110 acts as a slave device and
112 acts as a master device with
114 .Bl -tag -width indent
116 Translate Ctrl-C to ALT_BREAK (CR +
122 Replay old buffer on connection.
124 Verbose debug output.
127 options increase verbosity.
129 Listen on a wildcard address rather than localhost.
132 Do not write anything to the
136 Enable ad-hoc workaround for the TELNET protocol to
137 remove unnecessary byte sequences.
138 It should be set when you access
144 Read available buffer, then exit.
149 Specify polling rate.
150 The default value is 100.
151 .It Fl C Ar console_port
152 Specify the console port.
153 The default value is 0 (stdin/stdout).
158 The default value is \-1 (disabled).
162 Specify system file such as
164 .It Fl t Ar target_eui64
165 Specify the 64-bit extended unique identifier of the target,
166 and use FireWire to access remote
169 Specify the physical I/O address of the
175 If this option is not specified,
177 tries to get the address from the Configuration ROM on the target.
178 You are supposed to enable
180 on the target to omit this option.
182 Specify FireWire bus number.
186 .Bl -tag -width indent -compact
194 with FireWire for remote
196 you have to specify the EUI64 of the target.
197 You can obtain EUI64 by running
200 The first EUI64 is of the host running
202 and others on the bus follow.
203 .Bd -literal -offset indent
205 2 devices (info_len=2)
207 1 77-66-55-44-33-22-11-00 0
208 0 00-11-22-33-44-55-66-77 1
211 The EUI64 does not change unless you change the hardware
212 as the ethernet address.
216 .Bd -literal -offset indent
217 # dconschat -br -G 12345 -t 00-11-22-33-44-55-66-77
220 You will get console output of the target and login prompt if a
224 You can break to DDB with ALT_BREAK (CR +
230 .Dv ALT_BREAK_TO_DEBUGGER
231 are enabled in the target kernel.
232 To quit the session, type CR +
240 port is almost the same as remote
242 over serial line except
243 using TCP/IP instead of
246 .Sx "On-line Kernel Debugging Using Remote GDB"
248 .%T "The FreeBSD Developers Handbook"
252 .Bd -literal -offset indent
253 % gdb -k kernel.debug
254 (kgdb) target remote :12345
259 is attached and you specified the
265 causes a break to debugger.
267 The following command gets the console log from the crash dump:
268 .Bd -literal -offset indent
269 # dconschat -1 -M vmcore.0 -N kernel.0
272 If you want access to the console using
275 .Bd -literal -offset indent
276 # dconschat -rTC 5555 &
277 # telnet localhost 5555
280 You may want to keep logging console output of several machines.
282 in the Ports collection may help you.
283 Insert the following lines in
285 .Bd -literal -offset indent
289 exec /usr/sbin/dconschat -rh 25;
294 exec /usr/sbin/dconschat -rh 25 -t 00-11-22-33-44-55-66-77;
310 .An Hidetoshi Shimokawa Aq Mt simokawa@FreeBSD.org