1820644 Members
1975 Online
109626 Solutions
New Discussion юеВ

Ilo Cmdlets broke

 
SOLVED
Go to solution
Questions
Occasional Contributor

Ilo Cmdlets broke

I'm trying to do some updates on HPE ILO5 with powershell. The script previously worked but it seems that something is broke. I get the following error.. Anyone seen it and have a solution?

Tested with cmlets ver 2.2.0.0 and 3.3.0.0. ILO5 Version 2.72 nad 2.78.

Get-HPEiLOTPMStatus : [192.168.104.12]: Cannot deserialize the current JSON array (e.g. [1,2,3]) into type 'HPE.iLO.Com
munication.Redfish.DataEntity.OData' because the type requires a JSON object (e.g. {"name":"value"}) to deserialize cor
rectly.

3 REPLIES 3
Vinky_99
Esteemed Contributor

Re: Ilo Cmdlets broke

@Questions 

The error message suggests that there might be an issue with the JSON response that the cmdlet is receiving from the iLO5 server. ,

One possible reason for this error could be a change in the iLO5 API response format between the versions you tested.

Here are a few things you can try to resolve this issue:

  1. Verify that the iLO5 server is working correctly and responding to requests.

  2. Check if there is a firmware update available for your iLO5 server that might resolve any known issues with the API response.

  3. Try downgrading the iLO5 firmware to a lower version, and test if the cmdlets work correctly with that version.

  4. Check if there are any new versions of the iLO cmdlets available and try updating to the latest version.

  5. Check the PowerShell version and make sure it is compatible with the iLO cmdlets.

    Hope this helps! 

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

Re: Ilo Cmdlets broke

@Questions :

Please advise if you need any further advise on what has already been shred by @Vinky_99 . 

Thank you. 



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
Questions
Occasional Contributor
Solution

Re: Ilo Cmdlets broke

Hello, thanks for reaching out. 

I found the issue. I thought I was using the latest ILO cmdlets but seems I didn't Updating to 4.0.0.0 solved the issue.

@ShruthiSK Note: The signer of the cmd lets for 4.0.0.0 is diffrent from 3.3.0.0 so that produced a warning/error.

Thanks for the assistance.

BR

Henke