ipmitool 工具详情
Commands:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
raw Send a RAW IPMI request and print response
i2c Send an I2C Master Write-Read command and print response
spd Print SPD info from
remote I2C device
lan Configure LAN Channels
chassis Get chassis status and set
power state //chassis底盘
power Shortcut to chassis power commands
event
Send pre-defined events to MC
mc Management Controller status and global enables
sdr Print Sensor Data Repository entries and readings
sensor Print detailed sensor information
fru Print built- in
FRU and scan SDR for
FRU locators
gendev Read/Write Device associated with Generic Device locators sdr
sel Print System Event Log (SEL)
pef Configure Platform Event Filtering (PEF)
sol Configure and connect IPMIv2.0 Serial-over-LAN
tsol Configure and connect with Tyan IPMIv1.5 Serial-over-LAN
isol Configure IPMIv1.5 Serial-over-LAN
user Configure Management Controller users
channel Configure Management Controller channels
session Print session information
sunoem OEM Commands for
Sun servers
kontronoem OEM Commands for
Kontron devices
picmg Run a PICMG/ATCA extended cmd
fwum Update IPMC using
Kontron OEM Firmware Update Manager
firewall Configure Firmware Firewall
delloem OEM Commands for
Dell systems
shell Launch interactive IPMI shell
exec Run list of commands from
file
set
Set runtime variable for
shell and exec
hpm Update HPM components using
PICMG HPM.1 file
ekanalyzer run FRU-Ekeying analyzer using
FRU files
|
=============================================================
1
2
3
4
5
6
7
8
9
10
11
12
13
|
a) raw:发送一个原始的IPMI请求,并且打印回复信息。 b) Lan:配置网络(lan)信道(channel) c) chassis :查看底盘的状态和设置电源 d) event :向BMC发送一个已经定义的事件( event ),可用于测试配置的SNMP是否成功
e) mc: 查看MC(Management Contollor)状态和各种允许的项 f) sdr:打印传感器仓库中的所有监控项和从传感器读取到的值。 g) Sensor:打印详细的传感器信息。 h) Fru:打印内建的Field Replaceable Unit (FRU)信息 i) Sel: 打印 System Event Log (SEL) j) Pef: 设置 Platform Event Filtering (PEF),事件过滤平台用于在监控系统发现有 event 时候,用PEF中的策略进行事件过滤,然后看是否需要报警。
k) Sol/isol:用于配置通过串口的Lan进行监控 l) User:设置BMC中用户的信息 。 m) Channel:设置Management Controller信道。 |
ipmitool [-c|-h|-v|-V]-I open <command>
ipmitool [-c|-h|-v|-V]-I lan -H <hostname>
[-p <port>]
[-U <username>]
[-A <authtype>]
[-L <privlvl>]
[-a|-E|-P|-f <password>]
[-o <oemtype>]
<command>
ipmitool [-c|-h|-v|-V]-I lanplus -H <hostname>
[-p <port>]
[-U <username>]
[-L <privlvl>]
[-a|-E|-P|-f <password>]
[-o <oemtype>]
[-C <ciphersuite>]
<command>
这个程序能够使你通过一个kernel设备驱动或者一个远程系统,利用IPMIv1.5或IPMIv2.0 来管理本地系统的任何一个智能平台管理接口(IPMI)功能。
包括打印FRU(现场可替换装置)信息、LAN配置、传感器读数、以及远程机架电源控制。
一个本地系统接口的IPMI管理功能需要一个兼容IPMI的kernel驱动程序被安装以及配置。
在Linux中,这个驱动叫做OpenIPMI,他被包括在了标准化分配中。
在Solaris系统中,这个驱动叫做BMC,他被包括在了Solaris 10中。
远程控制的管理需要授权以及配置IPMI-over-LAN接口。
根据每个系统独特的需要,它可以通过系统接口来使LAN接口使用 ipmitool。
#ipmitool -l open shell
ipmitool命令行使用详解
#service ipmi start
#ipmitool -I open shell
#### 可以直接进入本地BMC shell
#ipmitool -I lan -H -U shell
#### 输入password,进入IPMI交互模式,当然这里也可以把shell直接换成bmc命令 , 另外ipmitool支持端口,所以是否可以先做DNAT,然后远程直接管理内网机器.
#### ipmitool提供的功能要比windows下ipmish提供的功能多得多,用法相对复杂一些
参考下面转摘的文章来详细了解命令
Ipmitool本地监控使用命令:ipmitool –I open command,其中-I open表示使用OpenIPMI接口,command有以下项:
Ipmitool –I open sensor list命令可以获取传感器中的各种监测值和该值的监测阈值,包括(CPU温度,电压,风扇转速,电源调制模块温度,电源电压等信息)
Ipmitool –I open sensor get “CPU0Temp”可以获取ID为CPU0Temp监测值,CPU0Temp是sensor的ID,服务器不同,ID表示也不同。