HewlettPackard / PowerShell-ProLiant-SDK

PowerShell sample scripts for managing HPE servers
https://www.hpe.com/servers/powershell
90 stars 42 forks source link

ILO5 2.30 Get-HPEiLOPowerRegulatorSetting output incomplete #51

Closed solipsist01 closed 4 years ago

solipsist01 commented 4 years ago

I'm running module version 3.0.0.1 with ilo5 2.30 from august 24 Ever since this upgrade the output of cmdlet Get-HPEiLOPowerRegulatorSetting is incomplete when used on all my servers.

We are using this cmdlet in our monitoring system, because sometimes after a upgrade the powersettings switch to default powersaving.

We are getting the following output:

VERBOSE: Executing the cmdlets with 1 task serially.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Getting JSON url for ODataType ComputerSystem.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Getting OdataId for OdataType ComputerSystem.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Getting url value from resource instance.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: JSON url is /redfish/v1/Systems/1/
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: JSON URL with query is- /redfish/v1/Systems/1/?$select=Oem.Hpe.PowerRegulatorMode
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Sending Redfish request.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Processing JSON response.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Response Type is HPE.iLO.Response.Redfish.PowerRegulatorSetting
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Processing simple JSON response.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Converting JSON response to output object.
VERBOSE: [Get-HPEiLOPowerRegulatorSetting][10.254.254.31][Redfish]: Deserialising the JSON response to their respective class.

Mode       : 
IP         : 10.254.254.31
Hostname   : 
Status     : OK
StatusInfo : 

I would expect to see at Mode: Max, but it's empty.

Raw response:

Target: 10.254.254.31
URL: https://10.254.254.31/redfish/v1/Systems/1/?$select=Oem.Hpe.PowerRegulatorMode
ContentType: application/json
Response: {"@odata.context":"/redfish/v1/$metadata#ComputerSystem.ComputerSystem","@odata.etag":"W/\"redacted\"","@odata.id":"/redfish/v1/Systems/1/","@odata.typ
e":"#ComputerSystem.v1_10_0.ComputerSystem"}
hp-powershell commented 4 years ago

Hi ,

Thanks for writing to us .

HPEiLOCmdlets 3.0.0.1 is a hot fix release which is released prior to release of iLO FW 2.30 .

iLO FW 2.30 has introduced a new change in redfish apis w.r.t select queries in URI . Same need to be supported in cmdlets for the cmdlets to provide the desired result .

We are working on release of hpe iLO cmdlets to incorporate the iLO FW 2.30 changes .

You would get the support in our upcoming release .

Thanks & Regards, Powershell Team