HPE OneView
1833758 Members
2326 Online
110063 Solutions
New Discussion

Re: Oneview Powershell modules broken, losing the will to live.

 
T_1_6
Regular Advisor

Oneview Powershell modules broken, losing the will to live.

I had a load of scripts to give me real time power stats for clusters etc and now none of them work with the 8.00 plug in for powershell.

Keeping it simple, even the basic command does not work:

Get-OVServer -ServerName xyzserver | Show-OVUtilization

Results in this mess:-

MethodInvocationException: Exception calling ".ctor" with "13" argument(s): "String '09/29/2023 17:30:00' was not recognized as a valid DateTime."

Does anything work any more?!

 

4 REPLIES 4
ChrisLynch
HPE Pro

Re: Oneview Powershell modules broken, losing the will to live.

The Show-OVUtilization Cmdlet hasn't been changed or updated. Can you provide more detail on the appliance version you are connecting with? You can get it from $PSLibraryVersion.
I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
ChrisLynch
HPE Pro

Re: Oneview Powershell modules broken, losing the will to live.

And here is the Cmdlet in operation from the current 8.00 library and an 8.00 appliance:

Screenshot.png

And here's the same library connecting to an 8.50 appliance:

Screenshot2.png

I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo

Re: Oneview Powershell modules broken, losing the will to live.

Hello, 

@T_1_6  I have the same problem like you have. What is your timezone ?
I am in Belgium (Europe). If you change in your regional settings the date format to MM-dd-yyyy, the problem will go away. It is not a clean solution, it is just a workaround.

@ChrisLynch It is the problem we had a chat about on Github ( show-ovutilization errors (maybe due to date format) · Issue #650 · HewlettPackard/POSH-HPEOneView (github.com) )

 

Marc

T_1_6
Regular Advisor

Re: Oneview Powershell modules broken, losing the will to live.

Great work!

I changed my system format to US (urrgh) and it worked!

Not sure why it was ok before, but with the updated cmdlets, it now fails unless the date is in US format.
Still, great observations.