Use of ipmitool in Linux
This article introduces the use of ipmitool tool. This command is mainly used to operate server hardware, so it is rarely used for General Business O & M, but its functions are very powerful, such: you can restart the server, reset the BMC port, configure the BMC port IP address, enter the grub environment, and set the boot sequence.
In most CentOS and RedHat Linux versions, it is installed by default, so it is more practical.
Another advantage is that it can be used to create an O & M Automation System for remote server management.
-Go to the grub environment:
Ipmitool-H $ BMC_IP-I lanplus-U $ USERNAME-P $ PASSWORD sol activate
-View Power status:
Ipmitool-H $ BMC_IP-I lan-U $ USERNAME-P $ PASSWORD power status
-Force modify the startup Item to automatically enter the BIOS settings page after the machine restarts:
Ipmitool-H $ BMC_IP-I lanplus-U $ USERNAME-P $ PASSWORD chassis bootparam set bootflag force_bios
-Turn off the server power and then turn on:
Ipmitool-H $ BMC_IP-I lan-U $ USERNAME-P $ PASSWORD power cycle
-View 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
This article will be introduced first and will be updated later. If you have any good suggestions or ideas, please leave a message for me. Thank you!
This article permanently updates the link address: