IPMI中sol的使用
- ipmitool sol set enabled true 1
- ipmitool sol set payload enable 1 3
- ipmitool sol info 1
如果安装了OMSAm,也可以使用命令行来修改:
/opt/dell/srvadmin/sbin/omconfig chassis biossetup -?
/opt/dell/srvadmin/sbin/omconfig chassis biossetup attribute=serialcom setting=com2
注意:ttyS0 对应COM1口,ttyS1对应COM2口,注意选择
- S0:2345:respawn:/sbin/agetty -h -L 57600 ttyS0 vt100
- S1:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 vt100
- kernel ...options... console=tty0 console=ttyS1,57600
- ttyS0
- ttyS1
- echo "S0:2345:respawn:/sbin/agetty -h -L 57600 ttyS0 vt100" >>/etc/inittab
- echo "S1:2345:respawn:/sbin/agetty -h -L 57600 ttyS1 vt100" >>/etc/inittab
- echo "ttyS0" >>/etc/securetty
- echo "ttyS1" >>/etc/securetty
- 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
好好参考此文档:
https://wenku.baidu.com/view/c4cd930852ea551810a687df.html