通过命令查询BMC IP
ipmitool lan print
查询设备硬件传感器信息(温度,功率等)
ipmitool sdr list
功率
ipmitool sdr list|grep 'Power'
进口温度
ipmitool sdr list |grep -w "Inlet_Temp"
出口温度
ipmitool sdr list |grep -w "Outlet_Temp"
上电自启动状态查询
ipmitool -I open sensor |grep "Outlet_Temp"ipmitool chassis status|grep 'Power Restore Policy '
关闭上电自启动
ipmitool chassis policy always-off
开启上电自启动
ipmitool chassis policy always-on