RESTful API를 사용하는 경우,
GET https://<%_iLO_IP_Address%>/redfish/v1/chassis/1/power
e.g.) GET https://192.168.0.10/redfish/v1/chassis/1/power
Note. RESTful client의 credential 설정 필요.
RESTful Interface Tool을 사용하는 경우,
RESTful Interface Tool
https://buy.hpe.com/kr/ko/software/infrastructure-management-software/system-server-management-software/hpe-system-server-software-management-software/restful-interface-tool/p/7630408
- ilorest를 통해 iLO 접속
ilorest login <%_iLO_IP_Address%> --user <%Administrative_Account%> --password <%Password%> --selector=Power. - 정보 열람
ilorest list
or
ilorest -d serverinfo --power
# ilorest login 192.168.0.10 --user admin --password password --selector=Power. iLOrest : RESTful Interface Tool version 3.2.1 Copyright (c) 2014-2021 Hewlett Packard Enterprise Development LP -------------------------------------------------------------------------------- Discovering data...Done # ilorest list iLOrest : RESTful Interface Tool version 3.2.1 Copyright (c) 2014-2021 Hewlett Packard Enterprise Development LP -------------------------------------------------------------------------------- <snip> PowerControl= @odata.id=/redfish/v1/Chassis/1/Power/#PowerControl/0 MemberId=0 PowerCapacityWatts=4400 PowerConsumedWatts=203 PowerMetrics= AverageConsumedWatts=204 IntervalInMin=20 MaxConsumedWatts=239 MinConsumedWatts=197 PowerSupplies= @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/0 FirmwareVersion=0.22 LastPowerOutputWatts=80 LineInputVoltage=231 LineInputVoltageType=ACHighLine Manufacturer=None MemberId=0 Model=MC2200B4-3-3R1-02 Name=HpeServerPowerSupply Oem= Hpe= @odata.context=/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply @odata.type=#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply AveragePowerOutputWatts=80 BayNumber=1 HotplugCapable=True MaxPowerOutputWatts=80 Mismatched=False PowerSupplyStatus= State=Ok iPDUCapable=False PowerCapacityWatts=2200 PowerSupplyType=Unknown SerialNumber=M6630G00G5ALZ SparePartNumber=MC2200B4-3 Status= Health=OK State=Enabled @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/1 FirmwareVersion=0.22 LastPowerOutputWatts=123 LineInputVoltage=231 LineInputVoltageType=ACHighLine Manufacturer=None MemberId=1 Model=MC2200B4-3-3R1-02 Name=HpeServerPowerSupply Oem= Hpe= @odata.context=/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply @odata.type=#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply AveragePowerOutputWatts=123 BayNumber=2 HotplugCapable=True MaxPowerOutputWatts=123 Mismatched=False PowerSupplyStatus= State=Ok iPDUCapable=False PowerCapacityWatts=2200 PowerSupplyType=Unknown SerialNumber=M6630G00CPALZ SparePartNumber=MC2200B4-3 Status= Health=OK State=Enabled @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/2 MemberId=2 Oem= Hpe= @odata.context=/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply @odata.type=#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply BayNumber=3 Status= Health=Warning State=Absent @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/3 MemberId=3 Oem= Hpe= @odata.context=/redfish/v1/$metadata#HpeServerPowerSupply.HpeServerPowerSupply @odata.type=#HpeServerPowerSupply.v2_0_0.HpeServerPowerSupply BayNumber=4 Status= Health=Warning State=Absent Redundancy= @odata.id=/redfish/v1/Chassis/1/Power/#Redundancy/0 MaxNumSupported=4 MemberId=0 MinNumNeeded=4 Mode=Failover Name=PowerSupply Redundancy Group 1 RedundancySet= @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/0 @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/1 @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/2 @odata.id=/redfish/v1/Chassis/1/Power/#PowerSupplies/3 Status= Health=OK State=Disabled # |
# ilorest -d serverinfo --power iLOrest : RESTful Interface Tool version 3.2.1 Copyright (c) 2014-2021 Hewlett Packard Enterprise Development LP ---------------------------------------------------------------------------------------------------------------- <snip> ,"SerialNumber":"M6630G00G5ALZ", <snip> ,"SerialNumber":"M6630G00CPALZ", ------------------------------------------------ Power Information: ------------------------------------------------ Total Power Capacity: 4400 W Total Power Consumed: 204 W Power Metrics on 20 min. Intervals: Average Power: 205 W Max Consumed Power: 246 W Minimum Consumed Power: 197 W ------------------------------------------------ Power Supply 1: ------------------------------------------------ Power Capacity: 2200 W Last Power Output: 80 W Input Voltage: 231 V Input Voltage Type: ACHighLine Hotplug Capable: True iPDU Capable: False Health: OK State: Enabled ------------------------------------------------ Power Supply 2: ------------------------------------------------ Power Capacity: 2200 W Last Power Output: 124 W Input Voltage: 231 V Input Voltage Type: ACHighLine Hotplug Capable: True iPDU Capable: False Health: OK State: Enabled ------------------------------------------------ PowerSupply Redundancy Group 1 ------------------------------------------------ Redundancy Mode: Failover Redundancy Health: OK Redundancy State: Disabled # |
반응형