Servers - General
1820638 Members
2080 Online
109626 Solutions
New Discussion юеВ

HPEiLOCmdlets 4.0.0.0, Get-HPEiLOHealthSummary produces error on Ubuntu system

 
cjs1976
Occasional Contributor

HPEiLOCmdlets 4.0.0.0, Get-HPEiLOHealthSummary produces error on Ubuntu system

Hi team,

I am working with the "Scripting Tools for Windows PowerShell: iLO cmdlets" (https://support.hpe.com/connect/s/softwaredetails?language=en_US&softwareId=MTX_bb648dcdf9b9424b8ffdd96d53&tab=revisionHistory) under Windows for qite some time.

It worked great. With the last iLO 5 versions the issues startet. I found some complains over a Google search, but no solution.

*************
ERROR-Message
*************
Cannot deserialize the current JSON array (e.g. [1,2,3]) into type
'HPE.iLO.Communication.Redfish.DataEntity.OData' because the type requires a JSON object (e.g. {"name":"value"}) to
deserialize correctly.
To fix this error either change the JSON to a JSON object (e.g. {"name":"value"}) or change the deserialized type to
an array or a type that implements a collection interface (e.g. ICollection, IList) like List<T> that can be
deserialized from a JSON array. JsonArrayAttribute can also be added to the type to force it to deserialize from a
JSON array.
*************

A couple of weeks ago new HPEiLOCmdlets 4.0.0.0 were released and also new iLO versions, so I started a new try on a test system.

For the Test, I don't use Windows, I use Ubuntu 22.04, PowerShell 7.3.4 and HPEiLOCmdlets 4.0.0.0 (same issue with 3.3.0.0).

I create the connection: $connection = Connect-HPEiLO -Address $iloIp -Username $iloUser -Password $iloPassword -DisableCertificateAuthentication

Everything ok.

I try to get the HealthSummary

$result = Get-HPEiLOHealthSummary -Connection $connection

*************
ERROR-Message
*************
GenericArguments[0], 'HPE.iLO.Communication.RIBCL.DataEntity.TEMP', on 'T MaxInteger[T](System.Collections.Generic.IEnumerable`1[T])' violates the constraint of type 'T'.
*************

At least it's a new error

Has by chance someone an Idea/a Solution?

Thanks,
Christian.

3 REPLIES 3
BPSingh
HPE Pro

Re: HPEiLOCmdlets 4.0.0.0, Get-HPEiLOHealthSummary produces error on Ubuntu system

Greetings!

Is the OS running latest version of AMS? As I believe AMS populates this data so it must be running in the server OS.

As you mentioned that the issue started after updating iLO version. Could you confirm on which iLO version was it working?
Did you get a chance to downgrade iLO to working version on one of the servers for testing and check the results?



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
yanshg
Visitor

Re: HPEiLOCmdlets 4.0.0.0, Get-HPEiLOHealthSummary produces error on Ubuntu system

@BPSingh 

On my environment (Windows 10 + Powershell 7.3 + HPEiLOCmdlets 4.0.0.0), Get-HPEiLOHealthSummary usually worked well with iLO 5 with 2.78 version.

But after upgrade the machine's iLO 5 to 2.91 version, it start not working.

Recently, I upgraded HPEiLOCmdlets to 4.3.0.0, the issue still happen.  the issue is not still fixed in HPEiLOCmdlets  4.3.0.0.

 

Could anybody in HPE have a look on this issue on priority?  we are depending on this function to run daily health check on a lot of HPE ProLiant servers.

Vinky_99
Esteemed Contributor

Re: HPEiLOCmdlets 4.0.0.0, Get-HPEiLOHealthSummary produces error on Ubuntu system

@yanshg 

It looks you got the answer here: https://community.hpe.com/t5/proliant-servers-ml-dl-sl/hpeilocmdlets-4-3-0-0-error-when-using-get-hpeiloiml/td-p/7204825

These are my opinions so use it at your own risk.