Changes

Jump to: navigation, search

Remote console setup

1,599 bytes added, 13:24, 8 June 2006
Serial console
== Serial console ==
FIXMEHere is a description of a common routine, that is necessary to set up a serial console. First of all you should make sure that your node has a serial port. If there is no such port thenunfortunately this way is not for you. Then you need to find second node with a serial port on it.This node will be used to collect logs from your primary mashine. Further you need to acquireso-called null modem cable and it must be long enough to connect two mashines in question. Ok, suppose, that preliminary operations above are performed and you connect two machines.In your boot loader add the following kernel parameters: <pre>console=ttyS0,11500 console=tty0</pre>For example in GRUB boot loader it looks like such strings in /boot/grub/grub.conf:<pre>title Fedora Core (2.6.16-026test014.1-smp) root (hd0,0) kernel /vmlinuz-2.6.16-026test014.1-smp ro root=LABEL=/ console=ttyS0,115200 console=tty debug silencelevel=8 initrd /initrd-2.6.16-026test014.1-smp.img</pre>Kernel loaded with such parameters will send all kernel messages to /dev/ttyS0 (serial port).Also be sure that your null modem cable is connected to appropriate port, if you have several ports. On the second node you should turn on any software that can log from /dev/ttyS0.It can be usual<pre>cat /dev/ttyS0 > /var/log/serial.log &</pre>or something more sophisticated: syslogd, watchtty etc. One more important thing. 115200 in the example above is the rate of emiting port. Also recieving port must work at equal rate.To tune ttyS0 rate use stty program:<pre>stty 115200 < /dev/ttyS0</pre>
== Netconsole ==
172
edits

Navigation menu