--ipmitool maintenance tool

Recommended for you: Get network issues from WhatsUp Gold. Not end users.

     Is a very good management tool Ipmitool to high maintenance guy, not only support the local operation of remote operation support. Do not rely on server CPU, memory, storage, power supply and other independent work, is a cheap remote management scheme. Borrow

The official introduction:

The service processor (or Baseboard Management Controller, BMC) is the brain behind platform management and its primary purpose is to handle the autonomous sensor monitoring and event logging features.

IPMItool is a tool for management and configuration, support the intelligent platform management interface (IPMI) utility version 1.5 and 2 version of the standard equipment. IPMI is an open standard, monitoring, recording, recovery, inventory and hardware independent of the main CPU, BIOS, control and operating system. The service processor (or baseboard management controller, BMC) is behind the platform for the management of the brain, the main purpose is to deal with the autonomous sensor monitoring and event recording function.

It features the ability to read the sensor data repository (SDR) and print sensor values, display the contents of the System Event Log (SEL), print Field Replaceable Unit (FRU) inventory information, read and set LAN configuration parameters, and perform remote chassis power control.

The ipmitool program provides a simple command line interface, the BMC. It has a read sensor data repository (SDR) and print sensor value, display the system event log (SEL) in the content, printing field replaceable unit (FRU) inventory information, read and set the LAN configuration parameter, the ability of the chassis power supply remote control.

It was originally written to take advantage of IPMI-over-LAN interfaces but is also capable of using a system interface as provided by a kernel device driver such as OpenIPMI on Linux and BMC on Solaris 10 or the new OpenIPMI-compatible driver in FreeBSD.

It was originally written to take over the LAN interface of the advantages of IPMI, but also can use the system interface from the kernel device driver, such as that provided by the OpenIPMI Linux and BMC compatible drivers on Solaris 10 or FreeBSD's new OpenIPMI.

One, the experimental environment

    The hardware environment:

            Lenovo RD630

    Software environment:

            centos6.4

Two, software installation

    yum install -y OpenIPMI ipmitool

 

Three, management function.

      

3.1 Windows platform

Install the DELL server management software -OpenManagment_V5.2.0, ipmish.exe in the "C:\Program Files\lenovo\SysMgt\bmc\", in the command line mode, operation

Basic grammar:

   > ipmish -ip -u -p

      ej:

            > ipmish -ip 192.168.15.196 -u root -p 123456 power status

                >>> To view the current state of the power supply

            > ipmish -ip 192.168.15.196 -u root -p 123456 power reset

                >>> Reset the machine

   > ipmish -interactive 

      I like to put on top of the batch, simply double-click, into the IPMI shell environment, and then

   >   connect -ip -u -p

      After successful verification, you can directly enter the BMC control commands, here are three more useful command, the command and more detailed usage, can view the help in BMC shell. > help

   >   power [status|off[-force]|on|reset|cycle]

       >>> Remote switch machine, not into the system of the restart, etc.

   >   sensor [temp|fan|volt|discrete|numeric] [-format ]

       >>> View the system sensor support command, temperature, voltage, fan etc.

   >   sel [[get [[[-begin ][-max |-end ]]|-last ] [-format ]] |clear|status]

       >>> View and manage the system log sel get > log.txt save log ; sel clear

   >   sysinfo [fru|id]

       >>> Check the FRU or BMC information

 

3.2 Linux platform

Centos6.4,When installing check the IPMI management pack, another pack of words, attention should be installed on the IPMI drive module and IPMITOOL management tool.

#Open the IPMI service

   [root@centos6 ~]#service ipmi start

#Direct access to the local BMC shell

   [root@centos6 ~]#ipmitool -I open shell

 

#Enter the password, enter the IPMI interactive mode, it can also use the shell directly into the BMC command ,

#Another ipmitool port, so whether can do DNAT, then direct remote management machine within the network.

# The functions provided by ipmitool much more features than windows ipmish, use relatively complex

[root@centos6 ~]#ipmitool -I lan -H -U shell

 

3.3 commands detailed solution

Ipmitool local monitoring using the command:

ipmitool -I open command, The -I open using the OpenIPMI interface

 

Command has the following items:

    a)                            raw: Send the original IPMI requests, and print the information reply.

 

b)        lan: Configure the network (LAN) channel(channel)

          [root@centos6 ~]#ipmitool  -I open lan print

 

c)        chassis : Check the chassis and power

          [root@centos6 ~]#ipmitool  -I open chassis status

 

d)        event: To an already defined event BMC transmission (event), can be used to test the configuration

SNMP success

 

e)        mc: See MC (Management Contollor) of a state and allow

          [root@centos6 ~]#ipmitool  -I open mc

 

f)        sdr: Print sensor warehouse in all the monitoring items and read from the sensor to the value of.

          [root@centos6 ~]#ipmitool  -I open sdr

 

g)        sensor: Sensor information print detailed.

          [root@centos6 ~]#ipmitool  -I open sensor

 

h)        Fru: Print the built-in Field Replaceable Unit (FRU) information

 

i)        sel: Print System Event Log (SEL)

          [root@centos6 ~]#ipmitool  -I open sel

j)        Pef: Set the Platform Event Filtering (PEF), event filtering platform for found in monitoring system

Event, event filtering strategy of PEF, and then see if you need alarm.

 

k)        Sol/isol: To configure the monitor through the serial port of the Lan

 

l)        user: Set the BMC of the user's information .

          [root@centos6 ~]#ipmitool  -I open user

 

m)        Channel: Set the Management Controller channel.

 

Ipmitool –I open sensor list

Note: this command can get all kinds of monitoring sensors in the value and the value of monitoring threshold (CPU, including temperature, voltage, rotate speed of fan, power modulation module temperature, supply voltage and other information)

Ipmitool –I open sensor get "CPU0Temp"You can get the ID value for CPU0Temp monitoring, CPU0Temp is sensor ID, server, ID is different.

ipmitool –Various monitoring items I open sensor thresh by setting ID equal to the ID value.

ipmitool –I open chassis status to view the chassis state, including the chassis power supply information, the working condition of the chassis

ipmitool –I open chassis restart_cause to view the reason to restart the last system

ipmitool –I open chassis policy list to view the relevant strategy of the chassis power support.

ipmitool –I open chassis power on startup chassis, use this command to remote boot

ipmitool –I open chassis power off closed chassis, use this command to remote boot

ipmitool –I open chassis power reset hard reboot, use this command to remote boot

IPMI can also start the boot set of system equipment, see ipmitool help documentation.

ipmitool –I open MC reset BMC re hard to start

ipmitool –I open MC info BMC view hardware information

ipmitool –I open MC BMC getenables lists all allowed options

ipmitool –I open mc setenables =[on|off], Set the BMC corresponding to enable / disable option.

Ipmitool-I open event 1 to send a message to the high temperature of System Event Log, the Event can send a:

1        Temperature: Upper Critical: Going High

2        Voltage Threshold: Lower Critical: Going Low

3        Memory: Correctable ECC Error Detected

The Ipmitool-I open event command can be used to test the configuration of the IPMI SNMP function in success.

Ipmitool -I open LAN print 1 print now we channel 1 information .



Ipmitool -I open LAN set 1 IPADDR 10.10.113.95 channel 1 address for 10.10.113.95

Ipmitool -I open LAN set 1 SNMP public channel 1 SNMP community public.

Ipmitool -I open LAN set 1 access on channel 1 allows access to.

Ipmitool -I open PEF info Platform Event Filtering (PEF) print information

Ipmitool -I open PEF status to view the Platform Event Filtering (PEF) state

Ipmitool -I open PEF policy to view the Platform Event Filtering (PEF) policy settings

Ipmitool -I open SDR list fru fru read and display information.

 

 

 

3.4 remote access server monitoring information

Get the server monitoring and remote, need the system hardware support for ipmiV1.5 and IPMIV2.0. Access to information, do not need to install additional software on the server, only need to install the IPMI software tool in the monitoring of the client, such as ipmitool, ipmiutil or freeipmi, and added to the remote server in the corresponding command name or address. Ipmitool and ipmiutil through the LAN remote monitoring system, at the same time saved in BMC there is a sequence of user name and password, via the LAN remote access requires a user name and password.

Get the server monitoring and remote, coupled with the need for the remote server address. Use the following command format:

ipmitool -H 10.6.77.249 -U root -P changeme -I lan command. The -H is followed by the address of the server, -U followed by the username, -P followed by the user password, command and local access to information in the same.

 

#Check the remote server power state

[root@centos6 ~]#ipmitool -I lanplus -H 192.168.15.102  -U lenovo -P lenovo power status

#Close the remote server




    If you think he is a good weapon, then let him edge leakage, make it play the biggest role in his.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download

Posted by Christopher at December 10, 2013 - 12:52 AM