IPMI is used in sol

IPMI is used in sol

http://blog.chinaunix.net/uid-1838361-id-3134038.html

SOL IPMI2.0 need support, use lanplus for remote connections.
7.1 Serial Over LAN (SOL) feature is very useful. SOL redirects the local serial interface over an IPMI Session allowing remote access to Windows Emergency Management Console (EMS) Special Administration Console (SAC), or visit the LINUX serial console.
  1. ipmitool sol set enabled true 1
  2. ipmitool sol set payload enable 1 3
 
About set the baud rate:
ipmitool  sol set non-volatile-bit-rate 115.2
Error:
Error setting SOL parameter 'volatile-bit-rate' to '115.2': Parameter out of range
Is set to 57.6.
If by OMSA web interface configuration, you can see up to 57600 instead of 115200
 
View:
  1. ipmitool sol info 1
 
7.2
To view the BIOS SOL output, the information required in the BIOS, the BIOS redirection to the serial port COM2
Serial Communications
Serial Communications: On with Console Redirection via COM2
Conole Redirection After Boot: Enable
External Serial Connector: Com2
If OMSAm installed, you can also use the command line to modify:
? / Opt / the Dell / the srvadmin / sbin / the omconfig The chassis biossetup -
/ opt / the Dell / the srvadmin / sbin / the omconfig The chassis biossetup attribute = serialcom Setting = com2
 
7.3
If you want to view through the SOL console linux, kernel also need to redirect the output:
Note the choices here for COM port number must match the entry you made in the Firmware Setup section: use ttyS0 for COM1; and ttyS1 for COM2.
Note: ttyS0 corresponds to COM1 port, corresponding to the COM2 port ttyS1, attention to the selection
 
7.3.1 / etc / inittab Add the following two lines:
  1. S0:2345:respawn:/sbin/agetty -h -L 57600 ttyS0 vt100
  2. S1:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 vt100
7.3.2 grub.conf, added after the options kernel parameters:

  1. kernel ...options... console=tty0 console=ttyS1,57600
requires attention:
If you use sed to modify, not sed /etc/grub.conf, the file is a soft link, sed -i will cause the file to become regular files, but really did not need to modify grub.conf to modify.
 
# Note splashimage graphical display line out, or can not display the menu in character mode 
#splashimage=(hd0,0)/grub/splash.xpm.gz
 
7.3.3 /etc/securetty
increase:
  1. ttyS0
  2. ttyS1
 
If kickstart installation system, can be added% post segment, the system automatically performs the installation:
  1. echo "S0:2345:respawn:/sbin/agetty -h -L 57600 ttyS0 vt100" >>/etc/inittab
  2. echo "S1:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 vt100" >>/etc/inittab
  3. echo "ttyS0" >>/etc/securetty
  4. echo "ttyS1" >>/etc/securetty
  5. sed -i '/kernel.*root=.*quiet.*/s/$/ console=tty0 console=ttyS1,57600/g' /boot/grub/grub.conf
7.4 UBUNTU12.04设置kernel的输出
1) Paste the following into /etc/init/ttyS1.conf

# ttyS1 - getty
#
# This service maintains a getty on ttyS1 from the point the system is
# started until it is shut down again.

start on stopped rc or RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -L 57600 ttyS1 vt100

2) Ask upstart to start the getty

sudo start ttyS1

This will get you access to console. To get access to Linux init console, configure grub.

1) Edit /etc/default/grub to contain the following lines
注意,上面有一条GRUB_CMDLINE_LINUX=""不需要注释掉

GRUB_CMDLINE_LINUX="console=tty0 console=ttyS1,57600"
GRUB_TERMINAL=serial
#GRUB_SERIAL_COMMAND="serial --speed=57600 --unit=1 --word=8 --parity=no --stop=1"
GRUB_SERIAL_COMMAND="serial --speed=57600 --unit=1 "

2) update grub

sudo update-grub
 

Guess you like

Origin www.cnblogs.com/xuanbjut/p/12646345.html