alex3025 / ilo-fans-controller

Easily manage your HP server's fans speeds, anywhere!
MIT License
158 stars 12 forks source link

"https://{ILO_HOST}/redfish/v1/chassis/1/Thermal" not returning any meaningful data #2

Closed MCowher-HT closed 1 year ago

MCowher-HT commented 1 year ago

I'm having trouble getting the application to work. I'm investigating the URL from the Subject line (with the host name populated of course), and this is being returned:

{"Messages":[{"MessageID":"Base.0.10.NoValidSession"}],"Type":"ExtendedError.1.0.0","error":{"@Message.ExtendedInfo":[{"MessageID":"Base.0.10.NoValidSession"}],"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information."}}

I'm on the patched version of ILO 2.77 that allows fan control.

Oddly enough, if I hit this URL: https://{ILO_HOST}/json/health_temperature, I get plenty of meaningful data back, including the "currentreading" value that ilo-fans-proxy.py is looking for:

{"hostpwr_state":"ON","in_post":0,"temperature":[{"label":"01-Front Ambient","xposition":0,"yposition":0,"location":"Ambient","status":"OP_STATUS_OK","currentreading":24,"caution":50,"critical":55,"temp_unit":"Celsius"},{"label":"02-CPU 1","xposition":11,"yposition":5,"location":"CPU","status":"OP_STATUS_OK","currentreading":46,"caution":70,"critical":0,"temp_unit":"Celsius"},{"label":"03-CPU 2","xposition":4,"yposition":5,"location":"CPU","status":"OP_STATUS_OK","currentreading":50,"caution":70,"critical":0,"temp_unit":"Celsius"},{"label":"04-P1 DIMM 1-3","xposition":8,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":35,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"05-P1 DIMM 4-6","xposition":9,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":35,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"06-P1 DIMM 7-9","xposition":13,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":34,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"07-P1 DIMM 10-12","xposition":15,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":33,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"08-P2 DIMM 1-3","xposition":0,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":34,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"09-P2 DIMM 4-6","xposition":2,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":37,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"10-P2 DIMM 7-9","xposition":6,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":37,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"11-P2 DIMM 10-12","xposition":7,"yposition":4,"location":"Memory","status":"OP_STATUS_OK","currentreading":36,"caution":87,"critical":0,"temp_unit":"Celsius"},{"label":"12-HD Max","xposition":5,"yposition":0,"location":"System","status":"OP_STATUS_OK","currentreading":55,"caution":60,"critical":0,"temp_unit":"Celsius"},{"label":"13-Chipset","xposition":6,"yposition":9,"location":"System","status":"OP_STATUS_OK","currentreading":48,"caution":105,"critical":0,"temp_unit":"Celsius"},{"label":"14-P/S 1","xposition":1,"yposition":12,"location":"Power Supply","status":"OP_STATUS_OK","currentreading":35,"caution":0,"critical":0,"temp_unit":"Celsius"},{"label":"15-P/S 2","xposition":1,"yposition":12,"location":"Power Supply","status":"OP_STATUS_ABSENT","currentreading":0,"caution":0,"critical":0,"temp_unit":"Celsius"},{"label":"16-P/S 2 Zone","xposition":3,"yposition":8,"location":"Power Supply","status":"OP_STATUS_OK","currentreading":39,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"17-VR P1","xposition":11,"yposition":3,"location":"System","status":"OP_STATUS_OK","currentreading":44,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"18-VR P2","xposition":4,"yposition":3,"location":"System","status":"OP_STATUS_OK","currentreading":44,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"19-VR P1 Mem","xposition":9,"yposition":1,"location":"System","status":"OP_STATUS_OK","currentreading":38,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"20-VR P1 Mem","xposition":14,"yposition":1,"location":"System","status":"OP_STATUS_OK","currentreading":38,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"21-VR P2 Mem","xposition":1,"yposition":1,"location":"System","status":"OP_STATUS_OK","currentreading":37,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"22-VR P2 Mem","xposition":6,"yposition":1,"location":"System","status":"OP_STATUS_OK","currentreading":44,"caution":115,"critical":120,"temp_unit":"Celsius"},{"label":"23-VR P1Vtt Zone","xposition":14,"yposition":7,"location":"System","status":"OP_STATUS_OK","currentreading":36,"caution":90,"critical":95,"temp_unit":"Celsius"},{"label":"24-VR P2Vtt Zone","xposition":2,"yposition":7,"location":"System","status":"OP_STATUS_OK","currentreading":34,"caution":90,"critical":95,"temp_unit":"Celsius"},{"label":"25-HD Controller","xposition":14,"yposition":10,"location":"System","status":"OP_STATUS_OK","currentreading":61,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"26-iLO Zone","xposition":6,"yposition":15,"location":"System","status":"OP_STATUS_OK","currentreading":44,"caution":90,"critical":95,"temp_unit":"Celsius"},{"label":"27-LOM Card","xposition":14,"yposition":14,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":51,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"28-PCI 1","xposition":13,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"29-PCI 2","xposition":13,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"30-PCI 3","xposition":13,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"31-PCI 4","xposition":7,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"32-PCI 5","xposition":7,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"33-PCI 6","xposition":7,"yposition":13,"location":"I/O Board","status":"OP_STATUS_ABSENT","currentreading":0,"caution":100,"critical":0,"temp_unit":"Celsius"},{"label":"34-PCI 1 Zone","xposition":13,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":27,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"35-PCI 2 Zone","xposition":13,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":28,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"36-PCI 3 Zone","xposition":13,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":28,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"37-PCI 4 Zone","xposition":5,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":25,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"38-PCI 5 Zone","xposition":5,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":27,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"39-PCI 6 Zone","xposition":5,"yposition":15,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":26,"caution":70,"critical":75,"temp_unit":"Celsius"},{"label":"40-I/O Board 1","xposition":13,"yposition":8,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":46,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"41-I/O Board 2","xposition":5,"yposition":8,"location":"I/O Board","status":"OP_STATUS_OK","currentreading":45,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"42-VR P1 Zone","xposition":12,"yposition":1,"location":"System","status":"OP_STATUS_OK","currentreading":36,"caution":95,"critical":100,"temp_unit":"Celsius"},{"label":"43-BIOS Zone","xposition":15,"yposition":10,"location":"System Board","status":"OP_STATUS_OK","currentreading":41,"caution":90,"critical":95,"temp_unit":"Celsius"},{"label":"44-System Board","xposition":12,"yposition":8,"location":"System","status":"OP_STATUS_OK","currentreading":40,"caution":80,"critical":85,"temp_unit":"Celsius"},{"label":"45-SuperCap Max","xposition":9,"yposition":8,"location":"System","status":"OP_STATUS_OK","currentreading":29,"caution":65,"critical":0,"temp_unit":"Celsius"},{"label":"46-Chipset Zone","xposition":7,"yposition":8,"location":"System","status":"OP_STATUS_OK","currentreading":40,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"47-Battery Zone","xposition":4,"yposition":11,"location":"System","status":"OP_STATUS_OK","currentreading":39,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"48-I/O Zone","xposition":12,"yposition":12,"location":"System","status":"OP_STATUS_OK","currentreading":40,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"49-Sys Exhaust","xposition":10,"yposition":15,"location":"Chassis","status":"OP_STATUS_OK","currentreading":40,"caution":75,"critical":80,"temp_unit":"Celsius"},{"label":"50-Sys Exhaust","xposition":4,"yposition":15,"location":"Chassis","status":"OP_STATUS_OK","currentreading":42,"caution":75,"critical":80,"temp_unit":"Celsius"}]}

MCowher-HT commented 1 year ago

I also get this result from "https://{ILO_HOST}/json/health_fans":

{"hostpwr_state":"ON", "fans":[ {"label":"Fan 1","location":"System","status":"OP_STATUS_OK","speed":13,"speed_unit":"Percentage"}, {"label":"Fan 2","location":"System","status":"OP_STATUS_OK","speed":13,"speed_unit":"Percentage"}, {"label":"Fan 3","location":"System","status":"OP_STATUS_OK","speed":13,"speed_unit":"Percentage"}, {"label":"Fan 4","location":"System","status":"OP_STATUS_OK","speed":13,"speed_unit":"Percentage"}, {"label":"Fan 5","location":"System","status":"OP_STATUS_OK","speed":15,"speed_unit":"Percentage"}, {"label":"Fan 6","location":"System","status":"OP_STATUS_OK","speed":19,"speed_unit":"Percentage"} ]}

MCowher-HT commented 1 year ago

turned out it was an SSH communication issue. Had to add the diffie-hellman-group1-sha1 key exchange.