IPMI中sol的使用

转载韦远科 最后发布于2013-05-09 15:19:18 阅读数 7920  收藏
 
http://blog.chinaunix.net/uid-1838361-id-3134038.html

SOL需要IPMI2.0支持,使用lanplus进行远程连接。
7.1 Serial Over LAN (SOL) 功能非常有用。SOL 通过 IPMI 会话重定向本地串行接口,允许远程访问 Windows 的紧急事件管理控制台 (EMS) 特殊管理控制台 (SAC),或访问 LINUX 串行控制台。
  1. ipmitool sol set enabled true 1
  2. ipmitool sol set payload enable 1 3
 
关于设置波特率:
ipmitool  sol set non-volatile-bit-rate 115.2
报错:
Error setting SOL parameter 'volatile-bit-rate' to '115.2': Parameter out of range
设置为57.6。
如果通过OMSA的web界面配置,可以看到,最高为57600,而不是115200
 
查看:
  1. ipmitool sol info 1
 
7.2
要使用SOL查看BIOS输出,需要在BIOS里将BIOS的信息重定向到串口COM2
Serial Communications
Serial Communications: On with Console Redirection via COM2
Conole Redirection After Boot: Enable
External Serial Connector: Com2
如果安装了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添加以下两行:
  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,在kernel的options后面添加参数:

  1. kernel ...options... console=tty0 console=ttyS1,57600
需要注意:
如果使用sed修改,不要sed /etc/grub.conf,该文件是个软连接,sed -i会造成该文件变成普通文件,而真正需要修改的grub.conf却没有修改。
 
#注掉splashimage 图形显示行,否则在字符模式下无法显示菜单 
#splashimage=(hd0,0)/grub/splash.xpm.gz
 
7.3.3 /etc/securetty
增加:
  1. ttyS0
  2. ttyS1
 
如果使用kickstart安装系统,可以加 %post 段,系统安装后自动执行:
  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

 

最新文章

  1. Collection和Collections的区别?
  2. Oracle 树操作(select…start with…connect by…prior)
  3. WCF服务配置编辑器使用
  4. Android HttpURLConnection And HttpClient
  5. Copy List with Random Pointer [LeetCode]
  6. java获取类路径
  7. Linux系统产生随机数的3种方法
  8. Sharepoint 2013 安装部署系列篇 第二篇 -- SQL集群安装
  9. Test语言编译器V0.8
  10. tlplayer,wzplayer支持wince,winphone,windows8 for arm
  11. docker rancher 体验 (未完待续.....)
  12. 关于Oracle、SqlServer 的sql递归查询
  13. RestTemplate发送请求并携带header信息 RestTemplate post json格式带header信息
  14. ubuntu 从零安装tf-serving环境和opencv
  15. RabbitMQ Exchange详解以及Spring中Topic实战
  16. Linux下进程/程序网络带宽占用情况查看工具 -- NetHogs
  17. unity3DGI
  18. 根据python上下文管理,写一个在读文件内容前后自动打开关闭文件的程序
  19. java类中serialversionuid 作用 是什么?举个例子说明(转)
  20. 关于beginPath()和closePath()的关系>>canvas的beginPath和closePath分析总结,包括多段弧的情况

热门文章

  1. A. 1.划分数列
  2. Python基础(十三):for循环
  3. 源码级深挖AQS队列同步器
  4. vscode(Visual Studio Code)中安装Debugger for Chrome插件调试页面
  5. 自动化kolla-ansible部署ubuntu20.04+openstack-victoria之vmware设置-02
  6. VirtualBox虚拟机读取U盘
  7. 进击中的Vue 3——“电动车电池范围计算器”开源项目
  8. Maven精简笔记
  9. MyBatisPlus入门学习
  10. 通过钉钉网页上的js学习xss打cookie