From Beginner to Master: A Detailed Guide to IPMITool

Introduction : Share a very practical server management tool - IPMITool. Many friends who are engaged in server management may already know about this tool, but for friends who are new to this field, it may still be a little strange. This article will lead you from understanding the basic concepts of IPMITool, and gradually go deep into its practical application, to help you master this amazing tool.

History Raiders:

Python: requests + BMC to get and set server wind speed

Python: requests + bmc startup, shutdown, graceful restart, forced restart

Basic concepts : First of all, we must understand the relationship between IPMI and IPMITool. IPMI (Intelligent Platform Management Interface, Intelligent Platform Management Interface) is an open standard designed to help system administrators manage server systems locally and remotely. And IPMITool is an application program based on IPMI interface, which allows administrators to perform various IPMI system management functions. Using IPMITool, we can perform many management tasks, such as querying hardware status information (such as CPU temperature, power supply status, fan speed, etc.), restarting the system, viewing system logs, etc. Moreover, another powerful feature of IPMITool is that it can directly query and set BIOS parameters from the operating system level without entering the BIOS interface, which greatly facilitates the administrator's work.

Install IPMITool : In most Linux distributions, you can use the package manager to install IPMITool.

# Ubuntu
sudo apt-get install ipmitool

# CentOS
sudo yum install ipmitool

Check the installation result:

ipmitool -V

picture

Using IPMITool : The use of IPMITool mainly depends on the IP address, user name and password of the IPMI interface. The basic command format is as follows:

ipmitool -I lanplus -H <ipmi_host> -U <username> -P <password> <command>

where <ipmi_host> is the IP address of your server's IPMI interface, and is your username and password, and is the command you want to execute.

Case : Check the system information of the server

ipmitool -I lanplus -H 192.168.0.101 -U ADMIN -P ADMIN chassis status

Commonly used IPMITool commands:

power status:查看电源状态
power reset:重置电源
power off:关闭电源
power on:开启电源
chassis status:查看机箱状态
sensor list:查看传感器列表,如 CPU 温度,风扇转速等
sel list:查看系统事件日志(System Event Log)
user list 1:列出所有的 IPMI 用户
lan print 1:显示网络配置

Summary : In practical application, the power and convenience of IPMITool will greatly improve the work efficiency. Whether you are a novice in server management or an administrator with some experience, if you master and use IPMITool well, it will undoubtedly be a powerful assistant in server management.

Guess you like

Origin blog.csdn.net/hzblucky1314/article/details/131035614