- Community Home
- >
- Servers and Operating Systems
- >
- ProLiant
- >
- Server Management - Remote Server Management
- >
- ilorest: get temperature sensor reading
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Blogs
-
Information
-
English
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
- Email to a Friend
- 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
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2021 Hewlett Packard Enterprise Development LP