0

ipmiutil 如何检查电源状态?

我们知道我们可以使用以下方法来打开/关闭服务器:

power down:ipmiutil power -d -N fsp_ip_address -P ipmi_password
power on:  ipmiutil power -u -N fsp_ip_address -P ipmi_password

但是我们怎样才能检查电源状态呢?

4

1 回答 1

0

可以通过health命令读取电源状态。它显示了很多信息,包括chassis_power = on

$ ipmiutil health -N 10.0.0.1 -P user -U password
ipmiutil ver 2.85
ihealth ver 2.85
Opening lan connection to node 10.0.0.1 ...
Connecting to node 10.0.0.1
BMC version       = a.00, IPMI v2.0
BMC manufacturer  = 000af2 ( ), product = 0037
IPMI driver type  = 6        (lan)
Power State       = 00       (S0: working)
Selftest status   = 0055     (OK)
Chassis Status    = 41 10 40 00 (on, see below)
         chassis_power       = on
         pwr_restore_policy  = turn_on
         last_power_event    = IPMI
         chassis_intrusion   = inactive
         front_panel_lockout = inactive
         drive_fault         = false
         cooling_fan_fault   = false
Power On Hours    = 7280 hours (303 days)
BMC LAN Channels  = 1 8
Chan 1 AuthTypes  = MD5
ipmiutil health, completed successfully
于 2019-05-13T09:04:21.703 回答