- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- Re: ilorest: get temperature sensor reading
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2019 01:37 PM - edited 10-14-2019 01:38 PM
10-14-2019 01:37 PM - edited 10-14-2019 01:38 PM
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!
- Tags:
- ilorest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2019 04:31 AM
10-21-2019 04:31 AM
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 work for HPE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-23-2019 02:12 PM
10-23-2019 02:12 PM
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