IPMITool and which are commonly used command

IPMITool and which are commonly used command

0.2582018.09.20 17:29:06 number of words read 3,330 1,680

Link Reference Links

IPMITool and which are commonly used command

IPMI (Intelligent Platform Management Interface) that is Intelligent Platform Management Interface is the hardware management with "intelligent" a new generation of common interface standards. The user can use physical characteristics IPMI monitoring server, such as temperature, voltage, the fan operation state, and the power supply chassis intrusion. Ipmi biggest advantage is that it is independent of the CPU BIOS and OS, so users no matter in the boot or shutdown state, as long as the power can be achieved monitoring server. Ipmi is a standard specification, which is the most important physical component BMC (Baseboard Management Controller FIG. 1), an embedded management microcontroller, which corresponds to the overall platform management, "brain", through which can be monitored ipmi each of the sensors and data logging various events.

ipmitool ipmi platform is a management tool in the Linux / Unix-based command line system available. It supports ipmi 1.5 and ipmi 2.0 specification (the latest specification ipmi 2.0). It may be implemented using the acquired sensor information, the display contents of the system log, the network remote switch function. Its main functions include reading and displaying the sensor data (the SDR), the display contents System Evernt Log (SEL) and to display the print Field Replaceable Unit (FRU) information, read and set BMC module LAN configuration, the remote host server power control .

ipmitool device drivers to support IPMI-over-LAN system and the Kernel (openIPMI in Linux, BMC in Solaris, openIPMI in FreeBSD) interfaces. That can be run locally, it can also run on a remote machine, management and control of the server host.

The latest version of ipmitool can go http://ipmitool.sourceforge.net/ download. The latest version is 1.8.11 (2012-04-29). The man ipmitool manual can go http://ipmitool.sourceforge.net/manpage.html access the web version.

Common management commands include:

================

System Management Commands

================

1.

View device information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin chassis status

2. View users

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user list

3. Increase user

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user set name 3 test1

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user list

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user set password 3 test1

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user priv 3 20

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user list

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U test1 -P test1 user list

Set user rights

The value of competence 2: user 3: operator 4: administrator, create the default permissions are NO ACCSS, no access. As the user id is set to 3 administrator, command

ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user priv3 4 ##### 3 number of users, the value of 4 permissions.

Open User

ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin  user enabled 3

4. disable / enable users

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user disable 3

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U test1 -P test1 user list

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin user enable 3

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U test1 -P test1 user list

5. Review the current server power-on state

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin power status

6. The boot server, shutdown, reset and power cycle

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin power on

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin power off

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin power cycle

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin power reset

7. Review the current status of the server 80 Port

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin raw 0x30 0xB2

8. Check sensor status of all sensors server status details:

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sensor

Sensor SDR summary information:

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sdr info

SDR sensor information list:

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sdr list

WIFE

SDR sensor information list:

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sdr list fru

Download RAW SDR information to a file:

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sdr dump sdr.raw

9. Check the server's FRU information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin fru

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin fru print

================

BMC

Self-configuration command

================

1.

View information of BMC

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc info

2. Check the BMC LAN information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin lan print 1

(Channel 1 is typically LAN)

3. Modify the BMC MAC information (can only be done as root locally, because no IP before)

enable BMC MAC SET mode:

/usr/bin/ipmitool raw 0x0c 0x01 0x01 0xc2 0x00

Write MAC to BMC (BMC MAC=d0:27:88:a4:e4:37):

/usr/bin/ipmitool raw 0x0c 0x01 0x01 0x05 0xD0 0x27 0x88 0xA4 0xE4 0x37

4. Modify the BMC network to automatically obtain IP address from DHCP, rather than static (can only be done as root locally, because no IP before that) to determine the channel 1 to LAN:

/usr/bin/ipmitool lan print 1

Set channel 1 to obtain an IP from the DHCP:

/usr/bin/ipmitool lan set 1 ipsrc dhcp

5. Restart BMC own (not the server) (BMC carefully hang hang)

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc reset

================

SOL

And access the system via the terminal IPMItool (Serial-Over-LAN)

================

1.

View the current SOL summary information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sol info 1

2. Modify the SOL configuration information to see all possible configurations

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sol set

Change the baud rate configuration

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sol set non-volatile-bit-rate 38.4 1

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sol set volatile-bit-rate 38.4 1

3. Turn on the remote terminal

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sol activate

(

You can use ~ Quit, ~? Displays help information)

================

Watchdog

Commands

================

1.

View the current watchdog information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc watchdog get

2. Set to open a watchdog

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc watchdog get

Set a OS WDT's watchdog, the timeout is 60 seconds (manual that looks IPMI 2.0, 27.6 Set Watchdog Timer 351 pages Command) (60x10 = 600 = 0x258)

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin raw 0x06 0x24 0x04 0x01 0x00 0x10 0x58 0x2

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc watchdog get

The watchdog opened

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc watchdog reset

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin mc watchdog get

Prohibit the watchdog action (Hard reset-> no action)

/usr/bin/ipmitool -I lanplus -H 10.32.228.187 -U sysadmin -P admin raw 0x06 0x24 0x04 0x00 0x00 0x10 0x58 0xFF

The above command the time change is very large, suggesting that the first one indicates no action 0x00, 0x04 representation is SMS / OS's watchdog, 0xFF58 a timeout, the unit is 100ms.

================

CELL

command

================

1.

View the current SEL summary information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel info

2. Detailed listing all SEL records

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel list

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel list 10

3. Delete the specified SEL record

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel delete 1

4. Clear all SEL records

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel clear

5. retrieve and modify the current clock SEL

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel time get

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin sel time set "04/24/2012 18:44:44"

6. View the SEL way to develop the RAW data

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin raw 0xa 0x43 0 0 111 0 0 0xFF

0xa 0x43 to Get SEL Entry Command; 0 0 reserved value 1110 represents 112 take the first recording (starting from 0), 0 is the offset, retention; 0xFF is a number of bytes read, the FF represents rounding record

================

PEF

command

================

1.

View BMC PEF current support information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef info

2. Check the BMC PEF current configuration information table (also can modify the configuration table)

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef list

3. Check the current BMC PEF status (the last SEL records processed by the BMC) information

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef status

4. Modify the current BMC PEF PEF configuration table to view the current configuration table

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef list

Suppose we want to delete this configuration item below

1 | active, pre-configured | 0x11 | Voltage | Any | None | OEM | Any | Power-off,OEM-defined

Configuration information of the configuration item

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin raw 0x04 0x13 0x07 0x01 0x00

11 01 40

Modify the configuration information in the configuration item

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin raw 0x04 0x12 0x07 0x01 0x40

Examine the modified PEF configuration table

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin pef list

 

================

Special command

================

1.

View ipmi server-side session currently active session

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin session info active

2. Perform all ipmitool commands saved in a file

/usr/bin/ipmitool -I lanplus -H 10.88.1.181 -U sysadmin -P admin exec myipmi.cmd

===================================== ============ summary ==========================================

#service ipmi start

#ipmitool -I open shell

#### can go directly to the local BMC shell

#ipmitool -I lan -H -U shell

#### Enter password, enter IPMI interactive mode, of course, there can also be directly replaced by bmc command shell, in addition ipmitool support port, so if you can do first DNAT, and then within direct management of remote network machines.

Under function than windows #### ipmitool provided ipmish provide much more functionality, usage is relatively complex

Refer to the following article to learn more about Zhuanzhai command

Quote

Ipmitool local monitoring using the command: ipmitool -I open command, which represents the use OpenIPMI -I open interfaces, command the following items:

a) raw: transmitting an original IPMI request and reply information printing.

b) Lan: Configure Network (LAN) channel (channel)

c) chassis: view the status of the chassis and power settings

d) event: whether to send event (event) to an already defined BMC, it can be used to configure the SNMP test success

e) mc: See MC (Management Contollor) state and allows various items

f) sdr: monitoring all items in the warehouse and the print sensor reading from the sensor values.

g) Sensor: print detailed sensor information.

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

i) Sel: Print System Event Log (SEL)

j) Pef: Setting Platform Event Filtering (PEF), platform event filtering system for monitoring found time event, conducted by PEF event filter in the policy, and then see whether the alarm.

k) Sol / isol: used to configure monitored by serial Lan

l) User: the user setting information BMC.

m) Channel: Set Management Controller channel.

Ipmitool -I open sensor list acquisition command and monitoring various monitored values ​​of the threshold value sensor, comprising (CPU temperature, voltage, fan speed, power modulation module temperature, supply voltage and other information)

Ipmitool -I open sensor get "CPU0Temp" can be acquired as CPU0Temp monitor value ID, CPU0Temp is the sensor's ID, a different server, ID represent different.

Ipmitool -I open sensor thresh ID value set equal to the limit value id various monitoring items.

Ipmitool -I open chassis status view state chassis, the chassis including a power source information, work status chassis

Ipmitool -I open chassis restart_cause view the last system reboot reasons

Ipmitool -I open chassis policy list view supported by the chassis power-related policies.

Ipmitool -I open chassis power on the chassis to start with this command remotely boot

Ipmitool -I open chassis power off to close the chassis, with this command to the remote boot

Ipmitool -I open chassis power reset achieve a hard reboot, use this command to remotely boot

Ipmi can also set the system to start the boot device, see the specific ipmitool help documentation.

Ipmitool -I open mc reset the BMC hard to re-start

Ipmitool -I open mc info View BMC hardware information

Ipmitool -I open mc getenables BMC lists all allowed options

Ipmitool -I open mc setenables = [on | off], set bmc corresponding enable / disable option.

Ipmitool-I open event 1 transmits a message to the high temperature in the System Event Log, Event may be sent are:

1 Temperature: Upper Critical: Going High

2 Voltage Threshold: Lower Critical: Going Low

3 Memory: Correctable ECC Error Detected

Ipmitool-I open event command can be used to test configuration snmp IPMI functionality of success.

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

Ipmitool -I open lan set 1 ipaddr 10.10.113.95 address channel 1 is provided 10.10.113.95

1 on Ipmitool -I open lan set 1 snmp public channel community snmp disposed of as public.

Ipmitool -I open lan set 1 access on channel 1 is set to allow access.

Ipmitool -I open pef info Print Platform Event Filtering (pef) Information

Ipmitool -I open pef status View Platform Event Filtering (pef) state

Ipmitool -I open pef policy view Platform Event Filtering (pef) policy settings

Ipmitool -I open sdr list fru fru information is read and displayed.

BMC's ipmitool  command collection

ipmi introduction omitted without depending ... ipmi server CPU, memory, storage, power supply to work independently, is an inexpensive remote management programs to an OS is not installed DELL PE2950 (ipmi v2.0) experimental machine.

Guess you like

Origin www.cnblogs.com/xuanbjut/p/12590509.html