HP Insight Control Software for Linux User Manual
Page 90
9.2.4 Configuring an operating system for console redirection
The Insight Control for Linux cmfd daemon, which runs on the CMS and
s,
captures the console output from managed systems and stores it in a file named
/hptc_cluster/adm/logs/cmf.dated/current/console_name.log
, where
console_name
identifies the managed system. For more information, see
By default, the operating system directs its output to the graphics console. This section provides
the information on how you can update a Kickstart or AutoYaST file to configure the operating
system of a managed system to redirect its console output to its serial port.
The following requirements must occur so that the cmfd daemon can capture the console output:
•
The BIOS on the managed system must be configured to redirect the serial port to the
Management Processor. For more information on this, see
•
The operating system must be instructed to redirect console output to the serial port. This means
that instead of having console output sent to the graphics terminal, console output is sent to
the management processor where the cmfd utility captures and stores it.
Modify the following three files to accomplish this:
•
/boot/grub/menu.lst
•
/etc/inittab
•
/etc/securetty
Follow these steps to have the Kickstart or AutoYaST file modify these files automatically during
the OS installation:
NOTE:
The following procedure assumes that COM1 is assigned to the virtual serial port in the
BIOS, thus, ttyS0 is being used. If your virtual serial port is assigned to COM2, substitute ttyS1
for ttyS0 in this procedure.
1.
Use the text editor of your choice to edit the Kickstart or AutoYaST file for the OS you are
installing. For example, if you are installing Red Hat 5 Update 1, edit the /opt/repository/
instconfig/rh051/rh051.cfg
Kickstart file.
2.
Locate the %%agentinstall%% macro at the end of the file.
3.
Add the following commands below the %%agentinstall%% macro. These commands add
the appropriate text to the three files.
NOTE:
The commands differ depending whether the managed system is a virtual host or
not.
For managed systems that are not virtual hosts:
ex /boot/grub/menu.lst <
/^[
Space-TAB]*kernel
1
s/$/ console=ttyS0/
w
!
ex /etc/inittab </^1:234:respawn:
o
I
co:2345:respawn:/sbin/agetty ttyS0 115200,38400,19200,9600 vt100
.
w
!
echo ttyS0 >> /etc/securetty
90
Installing operating systems on managed systems