Penguin
Blame: SerialConsole
EditPageHistoryDiffInfoLikePages
Annotated edit history of SerialConsole version 1, including all changes. View license author blame.
Rev Author # Line
1 AristotlePagaltzis 1 A SerialConsole allows you to access your server via it's serial port. This is useful if you need to shut the machine down to single user mode, see boot messages or accidentally misconfigure your networking. Many server boards (Intel, SuperMicro etc) can also redirect the BIOS output to the serial port allowing you to reconfigure your bios remotely.
2
3 Sometimes you may have a serial cable that's too short, or you would like to run the serial console through a patch panel. To do this the best solution is to use some CAT5 and a couple DB9->RJ45 adapters. Below is the wiring for the [adapters|http://www1.jaycar.co.nz/productView.asp?ID=PA0906&CATID=&keywords=rj45&SPECIAL=&form=KEYWORD] I use ([these|http://www.cablesdirect.co.nz/catalog/product_info.php?products_id=845] are cheaper):
4
5 [http://www.nevada.net.nz/~pmurray/rj45wiring.svg]
6
7 Cards offering 2, 4, or 8 serial ports are also available, for example<br>
8 http://ascent.co.nz/mn-product-spec.asp?pid=108704 (2 port)<br>
9 http://ascent.co.nz/mn-product-spec.asp?pid=115340 (8 port)
10
11 ----
12
13 !!Notes on setting up SerialConsoles
14
15 ! How do i set this up under linux?
16
17 There's lots of howto's, some can be found [here|http://howtos.linux.com/howtos/Text-Terminal-HOWTO-14.shtml] and [here|http://www.tldp.org/HOWTO/Remote-Serial-Console-HOWTO/index.html]. Basically, you need a program to listen for incoming serial comms (a "getty" program, for "get tty" or console), and a serial comms program such as minicom.
18
19 On Debian, all that's needed is usually editing of /etc/inittab, then restarting init using 'telinit q'. Minicom may need to be started using -o (do not initialize modem & lockfiles at startup).
20
21 Some of the newer multi port serial cards like the SIIG PCI Serial 8000 Plus require the following to work in Linux.
22
23 * apt-get install setserial
24 * Add the following to /etc/serial.conf
25 <pre>
26 /dev/ttyS4 baud_base 1152000
27 /dev/ttyS5 baud_base 1152000
28 /dev/ttyS6 baud_base 1152000
29 /dev/ttyS7 baud_base 1152000
30 /dev/ttyS8 baud_base 1152000
31 /dev/ttyS9 baud_base 1152000
32 /dev/ttyS10 baud_base 1152000
33 /dev/ttyS11 baud_base 1152000
34 </pre>
35
36 No, that's not a typo - 1152000 not 115200. Other values which might work for some card variants are 921600.
37
38 ! I want to have a serial line between two machines, so I can access either machine via serial
39
40 The short answer is, you can't. You run a getty on one end of the serial line, and minicom or some other serial terminal on the other. If you run a getty on both ends, you won't be able to minicom over it as it locks. You'll have to run two cables between your machines.
41
42 ! I want to use a serial console
43
44 If your motherboard supports serial redirection (as any good server board should) this is easy - it'll just work, if it's enabled in the bios. Connect to the serial line via minicom, and you should see boot messages. Note that the serial port will probably still be set at 19200 bps or so at this stage.
45
46 If your motherboard doesn't support serial redirection, you won't ever get BIOS access over serial, but you can still get everything after the bootloader starts. See [GrubNotes|http://www.wlug.org.nz/GrubNotes#hdr_using_54_with_a_serial_console] for information on setting up Grub with a serial console.
47
48 ----
49
50 !!Connecting to Cisco kit
51
52 Grab one of the aforementioned DB9-RJ45 connectors (see further up the page). Go here http://www.cisco.com/univercd/cc/td/doc/product/10bthubs/hub/1500hbug/techspec.htm#31255 and join the pins up according to the "CONSOLE Port" and "DB9 Pin" columns. Then you can use a standard Cat5 patch cable to connect the RJ45 connector on the adapter, and the RJ45 connector on the back of your switch/whatever, or run your console through a patch panel, etc.
53
54 (Note that the adapter you've just created is not the same as the one that (used to?) ship with Cisco gear - they're designed for rollover cables)
55
56 ----
57 CategoryHardware