参考
配置
iDRAC
BIOS
上面“Serial Port Address”用于设置串口设备的对应关系,上图这种配置ttyS0是COM0,ttyS1是COM2,如果选择的是下面这种:
那么ttyS0对应的是COM2.
grub参数
-
修改/etc/default/grub
-
重新生成grub.cfg
grub2-mkconfig -o /boot/grub2/grub.cfg
在另外一台电脑上使用IPMITOOL进行测试
- 查看帮助
# ipmitool -I lanplus -H 192.168.0.130 -U root -P calvin sol
SOL Commands: info [<channel number>]
set <parameter> <value> [channel]
payload <enable|disable|status> [channel] [userid]
activate [<usesolkeepalive|nokeepalive>] [instance=<number>]
deactivate [instance=<number>]
looptest [<loop times> [<loop interval(in ms)> [<instance>]]]
# ipmitool -I lanplus -H 192.168.0.130 -U root -P calvin sol set
SOL set parameters and values:
set-in-progress set-complete | set-in-progress | commit-write
enabled true | false
force-encryption true | false
force-authentication true | false
privilege-level user | operator | admin | oem
character-accumulate-level <in 5 ms increments>
character-send-threshold N
retry-count N
retry-interval <in 10 ms increments>
non-volatile-bit-rate serial | 9.6 | 19.2 | 38.4 | 57.6 | 115.2
volatile-bit-rate serial | 9.6 | 19.2 | 38.4 | 57.6 | 115.2
- 配置波特率
# ipmitool -I lanplus -H 192.168.0.130 -U root -P calvin sol set volatile-bit-rate 115.2
- 激活
# ipmitool -I lanplus -H 192.168.0.130 -U root -P calvin sol activate
- 反激活
# ipmitool -I lanplus -H 192.168.0.130 -U root -P calvin sol deactivate
标签:0.130,重定向,calvin,192.168,sol,t620,set,串口 From: https://www.cnblogs.com/pengdonglin137/p/17674941.html在执行玩activate后,会进入串口终端交互界面,如果不确定串口号配置对不对,可以在linux里依次向每个串口写入字符串,看向哪个串口写入字符串后,串口终端上面会有输出. 最后使用完毕,要进行deactivate操作。
下面是进入串口终端后的一些快捷键:
~. 退出串口终端
~? 查看帮助