This article describes the use of the Ipmitool tool, this command is mainly used to operate the server hardware, so the general business operations will rarely use it, but it is very powerful, such as: the ability to restart the server, reset the BMC port, configure the BMC Port IP, into the GRUB environment, set the boot sequence, and so on.
It is installed by default in most versions of CentOS and Redhat, so it is more useful.
Another advantage is that it can be used to create a remote Management Server operation and maintenance automation system.
-Enter the GRUB environment:
ipmitool-h $BMC _ip
-i lanplus-u $USERNAME-P $PASSWORD Sol activate
- 查看电源状态:
ipmitool -H $BMC_IP
-I lan -U $USERNAME -P $PASSWORD power status
- 强制修改启动项,让机器重启后自动进入BIOS设置界面:
ipmitool -H $BMC_IP
-I lanplus -U $USERNAME -P $PASSWORD
Chassis Bootparam Set Bootflag Force_bios
- 关掉服务器电源,再打开:
ipmitool -H $BMC_IP
-I lan -U $USERNAME -P $PASSWORD power cycle
-viewing BMC information:
ipmitool -H $BMC_IP
-I lan -U $USERNAME -P $PASSWORD mc info
-Display LAN information:
ipmitool -H $BMC_IP
-I lan -U $USERNAME -P $PASSWORD lan print
First introduced here, will continue to update, if you have any good suggestions or good ideas, please leave me a message. Thank you!
This article from the "Linux and Network" blog, reproduced please contact the author!
The use of Ipmitool tools in Linux