Server Management - Remote Server Management
cancel
Showing results for 
Search instead for 
Did you mean: 

ilorest: get temperature sensor reading

 
yomiko
Occasional Visitor

ilorest: get temperature sensor reading

I am new to ilorest.  I would like to get the current reading of a temperature sensor on the box.

This could get me all the Fans and Temperatures:
curl -X GET https://<ilo_ip>/redfish/v1/chassis/1/thermal 

Anyone knows if the API to get a specific sensor's reading?  E.g. Temperatures, Number 5

I found this from the doc, but I cannot get it to work properly:
https://hewlettpackard.github.io/ilo-rest-api-docs/ilo4/?shell#temperatures-array-item-context

Temperatures[array-item].CurrentReading
JSONPath: /Temperatures/(array index)/CurrentReading (read only integer)
The current reading of the temperature sensor.

Thanks!

2 REPLIES 2
Vinod_HPE
Advisor

Re: ilorest: get temperature sensor reading

Hi 

Please refer below steps & link 

Table 2: HPE ProLiant Management Command Line Interface Utility (hpasmcli)
Description hpasmcli iLORest
Clear the IML log. hpasmcli -s "clear iml" ilorest serverlogs --
selectlog=IML --clearlog
Repair IML entry #30. hpasmcli -s "repair iml
30"
ilorest serverlogs --
selectlog=IML --repair
30
Disable Automatic Server
Recovery.
hpasmcli -s "disable
asr"
ilorest set
AsrStatus=Disabled --
selector=Bios. --commit
Enable Wake On LAN BIOS
setting.
hpasmcli -s "enable wol" ilorest set
WakeOnLan=Enabled --
selector=Bios. --commit
Set the ASR Timeout to 15
minutes.
hpasmcli -s "set asr 15" ilorest set
AsrTimeoutMinutes=15 --
selector=Bios. --commit
Show the status of the fans. hpasmcli -s "show fans" ilorest serverinfo --
fans
Show the temperature sensors. hpasmcli -s "show temp" ilorest serverinfo --
thermals
Show the Power supply status. Hpasmcli -s "show
powersupply"
ilorest serverinfo --
power

Transition to the RESTful Interface Tool
(iLORest)

https://support.hpe.com/hpsc/doc/public/display?docId=a00061427en_us

https://hewlettpackard.github.io/python-redfish-utility/#overview

Thanks & Regards,

Vinod Rawat 

I am a HPE Employee
yomiko
Occasional Visitor

Re: ilorest: get temperature sensor reading

I ran this in interactive mode which should return both the "Sensor Number" and ReadingCelsius"

for everything under "Temperatures".  However, it only returned one (the last) item I requested (ReadingCelsius"). 

 

iLOrest > get Temperatures/SensorNumber Temperatures/ReadingCelsius

Temperatures=

              ReadingCelsius=25

              ReadingCelsius=40

 

This looks like a bug since I was able to select and display multiple properties from "ComputerSystem"

iLOrest > select ComputerSystem.
iLOrest > get MemorySummary/Status MemorySummary/TotalSystemMemoryGiB AssetTag
AssetTag=""
MemorySummary=
               Status=
                       HealthRollup=OK
               TotalSystemMemoryGiB=32