Difference between revisions of "Set up serial console to view system log"

From Nearline Storage
Jump to navigation Jump to search
m
m
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
* On system doing the monitoring:
+
To set up a serial console to, for instance, capture kernel panic information ...
** Start minicom -s -o
 
*** Under "Serial Port Setup:"
 
**** Set Serial Device (A) = /dev/ttyS0
 
**** Set BPS/Par/Bits (E) = 115200 8N1
 
**** Set Hardware Flow Control (F) = Yes
 
**** Set Software Flow Control (G) = No
 
*** Under "Modem and dialing" clear:
 
**** Init String (A)
 
**** Reset String (B)
 
**** Hang-up string (K)
 
*** Save profile with a name like "ttyS0"
 
  
 +
===Set up system to do the monitoring===
 +
* Start <code>minicom -s -o</code>
 +
** Under <code>Serial Port Setup:</code>
 +
*** Set <code>Serial Device (A) = /dev/ttyS0</code>
 +
*** Set <code>BPS/Par/Bits (E) = 115200 8N1</code>
 +
*** Set <code>Hardware Flow Control (F) = Yes</code>
 +
*** Set <code>Software Flow Control (G) = No</code>
 +
** Under <code>Modem and dialing</code> clear out:
 +
*** <code>Init String (A)</code>
 +
*** <code>Reset String (B)</code>
 +
*** <code>Hang-up string (K)</code>
 +
** Save profile with a name like "ttyS0"
  
* On the system to be monitored:
+
===Set up system to be monitored===
** edit /etc/grub.conf and add kernel boot parameters "console=tty0 console=ttyS0,115200"
+
* Edit <code>/etc/grub.conf</code> and add kernel boot parameters <code>console=ttyS0,115200n8 console=tty0</code>
  
 +
===Start monitoring===
 +
* Get a null modem serial cable and connect the systems to each other. (I assume the use of COM1/ttyS0 here but that isn't required)
 +
* Start minicom on the monitoring system with <code>minicom ttyS0</code> (using the name of the minicom profile you saved above)
 +
* Reboot monitored system, the console should be displayed in minicom on the monitoring system
  
* Get a null modem serial cable and connect the systems to each other
+
[[Category:Linux]]
* Start minicom on the monitoring system with "minicom ttys0" (using the name of the minicom profile you saved above)
 
* Reboot monitored system, the console should be displayed on the monitoring system
 

Latest revision as of 14:52, 31 December 2019

To set up a serial console to, for instance, capture kernel panic information ...

Set up system to do the monitoring

  • Start minicom -s -o
    • Under Serial Port Setup:
      • Set Serial Device (A) = /dev/ttyS0
      • Set BPS/Par/Bits (E) = 115200 8N1
      • Set Hardware Flow Control (F) = Yes
      • Set Software Flow Control (G) = No
    • Under Modem and dialing clear out:
      • Init String (A)
      • Reset String (B)
      • Hang-up string (K)
    • Save profile with a name like "ttyS0"

Set up system to be monitored

  • Edit /etc/grub.conf and add kernel boot parameters console=ttyS0,115200n8 console=tty0

Start monitoring

  • Get a null modem serial cable and connect the systems to each other. (I assume the use of COM1/ttyS0 here but that isn't required)
  • Start minicom on the monitoring system with minicom ttyS0 (using the name of the minicom profile you saved above)
  • Reboot monitored system, the console should be displayed in minicom on the monitoring system