In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the use of ipmitool tools under the Linux system". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
This article introduces the use of the ipmitool tool. This command is mainly used to operate the server hardware, so general business operators rarely use it, but its functions are very powerful, such as: the ability to hard restart the server, reset the BMC port, configure the BMC port IP, enter the grub environment, set the boot order, and so on.
It is installed by default in most versions of CentOS and RedHat Linux, so it is more practical.
Another advantage is that it can be used to make an automatic operation and maintenance system for remote management servers.
-enter the grub environment:
The code is as follows:
Ipmitool-H $BMC_IP-I lanplus-U $USERNAME-P $PASSWORD sol activate
-View power status:
The code is as follows:
Ipmitool-H $BMC_IP-I lan-U $USERNAME-P $PASSWORD power status
-force the startup item to be modified to automatically enter the BIOS configuration interface after the machine is rebooted:
The code is as follows:
Ipmitool-H $BMC_IP-I lanplus-U $USERNAME-P $PASSWORD chassis bootparam set bootflag force_bios
-Power off the server and turn it on:
The code is as follows:
Ipmitool-H $BMC_IP-I lan-U $USERNAME-P $PASSWORD power cycle
-View BMC information:
The code is as follows:
Ipmitool-H $BMC_IP-I lan-U $USERNAME-P $PASSWORD mc info
-displays the information of lan:
The code is as follows:
Ipmitool-H $BMC_IP-I lan-U $USERNAME-P $PASSWORD lan print
The Ipmitool-I open sensor list command can obtain various monitoring values and threshold values in the sensor, including (CPU temperature, voltage, fan speed, power modulation module temperature, power supply voltage, etc.)
Ipmitool-I open sensor get "CPU0Temp" can get that ID is the CPU0Temp monitoring value, and CPU0Temp is the ID of sensor. The ID representation varies from server to server.
The code is as follows:
Ipmitool-I open sensor thresh
Set various limit values for monitoring items whose ID value is equal to id.
The code is as follows:
Ipmitool-I open chassis status
Check the chassis status, including chassis power information, chassis working status, etc.
The code is as follows:
Ipmitool-I open chassis restart_cause
Check the reason for the last system restart
The code is as follows:
Ipmitool-I open chassis policy list
View supported chassis power related policies.
The code is as follows:
Ipmitool-I open chassis power on
Start the chassis and use this command to boot remotely
The code is as follows:
Ipmitool-I open chassis power off
Close the chassis and use this command to boot remotely
The code is as follows:
Ipmitool-I open chassis power reset
Implement a hard restart, and you can boot remotely with this command
The code is as follows:
Ipmitool-I open mc reset
Cause BMC to restart hard
The code is as follows:
Ipmitool-I open mc info
View BMC hardware information
The code is as follows:
Ipmitool-I open mc getenables
List all allowed options for BMC
The code is as follows:
Ipmitool-I open mc setenables
The code is as follows:
Ipmitool-I open event
The command can be used to test the success of the snmp function in the configured IPMI.
The code is as follows:
Ipmitool-I open lan print 1
Print the information that shows our channel 1.
The code is as follows:
Ipmitool-I open lan set 1 ipaddr 10.10.113.95
Set the address of channel 1 to 10.10.113.95
The code is as follows:
Ipmitool-I open lan set 1 snmp public
Set the community of snmp on channel 1 to public.
The code is as follows:
Ipmitool-I open lan set 1 access on
Set channel 1 to allow access.
The code is as follows:
Ipmitool-I open pef info
Print Platform Event Filtering (pef) information
The code is as follows:
Ipmitool-I open pef status
View Platform Event Filtering (pef) status
The code is as follows:
Ipmitool-I open pef policy
View Platform Event Filtering (pef) policy settings
The code is as follows:
Ipmitool-I open sdr list fru
Read the fru information and display it. (but there is a problem with my server and this item cannot be read)
This is the end of the content of "how to use ipmitool tools under the Linux system". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.