标签:sbin ttyS1 grub IPMI sol etc 使用 console 57600
IPMI中sol的使用
转载韦远科 最后发布于2013-05-09 15:19:18 阅读数 7920 收藏 http://blog.chinaunix.net/uid-1838361-id-3134038.htmlSOL需要IPMI2.0支持,使用lanplus进行远程连接。 7.1 Serial Over LAN (SOL) 功能非常有用。SOL 通过 IPMI 会话重定向本地串行接口,允许远程访问 Windows 的紧急事件管理控制台 (EMS) 特殊管理控制台 (SAC),或访问 LINUX 串行控制台。
- 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 7.3 如果要通过SOL查看linux的控制台,还需要重定向kernel的输出: 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.
注意:ttyS0 对应COM1口,ttyS1对应COM2口,注意选择 7.3.1 /etc/inittab添加以下两行:
- 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
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
标签:sbin,ttyS1,grub,IPMI,sol,etc,使用,console,57600 来源: https://www.cnblogs.com/xuanbjut/p/12646345.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。