Guide to the use of Ipmitool tools in Linux Systems

Source: Internet
Author: User
Tags reset snmp snmp public

This article describes the use of Ipmitool tools, this command is mainly used to operate the server hardware, so the general business operations are rarely used, but it is very powerful, such as: can be hard to restart the server, reset the BMC port, configure BMC Port IP, into the GRUB environment, set the boot sequence, and so on.

It will be installed by default in most versions of CentOS and Redhat Linux, so it is more practical.

Another benefit is that it can be used to make a remote Management Server's operational automation system.

-Enter 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 changes to the boot entry to automatically enter the BIOS setup interface after the machine restarts:

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 then open:

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 information about the 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 allows you to obtain a variety of monitoring values in the sensor and a monitoring threshold for that value, including (CPU temperature, voltage, fan speed, power modulation module temperature, power supply voltage, etc.)

Ipmitool–i Open sensor get "cpu0temp" can obtain the ID cpu0temp monitoring value, Cpu0temp is the sensor ID, the server is different, the ID representation is different.

The code is as follows:

Ipmitool–i Open Sensor Thresh

Sets the various limit values for a monitoring item that has an ID value equal to the ID.

The code is as follows:

Ipmitool–i Open Chassis Status

View chassis status, including chassis power information, chassis working status, etc.

The code is as follows:

Ipmitool–i Open Chassis Restart_cause

View the reason for the last system reboot

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

Boot chassis, use this command to boot remotely

The code is as follows:

Ipmitool–i Open chassis Power off

Turn off the chassis and use this command to boot remotely

The code is as follows:

Ipmitool–i Open Chassis Power Reset

Implement a hard reboot with this command to boot remotely

The code is as follows:

Ipmitool–i Open MC Reset

Reset the BMC to a hard start

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:

The code is as follows:

Ipmitool-i Open Event

command can be used to test whether the SNMP feature in IPMI is configured successfully.

The code is as follows:

Ipmitool-i Open LAN Print 1

Print the information 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 SNMP community to public on Channel 1.

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 my server has a problem, this item is not read)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.