dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
606 stars 279 forks source link

Invoke-BootToNetworkIsoOsdREDFISH fails #64

Closed jpbolwe closed 5 years ago

jpbolwe commented 5 years ago

Please see that I did try to run other status and I did receive valid responses. command and error received:

Invoke-BootToNetworkIsoOsdREDFISH -idrac_ip -idrac_username root -idrac_password calvin -get_attach_status y

{"error":{"@Message.ExtendedInfo":[{"Message":"Unable to run the method because the requested HTTP method is not allowed.","MessageArgs":[],"MessageArgs@odata.count":0,"MessageId":"IDRAC.1.6.SYS402","RelatedProperties":[],"RelatedProperties@odata.count":0,"Resolution":"Enter a valid HTTP method and retry the operation. For information about valid methods, see the Redfish Users Guide available on the support site.","Severity":"Informational"}],"code":"Base.1.0.GeneralError","message":"A general error has occurred. See ExtendedInfo for more information"}}

texroemer commented 5 years ago

Hi @jpbolwe

There was an issue with the cmdlet, the function returned correct error message about iDRAC version detected is not supported but it didn't break out and cmdlet still tried to run. I fixed the cmdlet which should now break out correctly when iDRAC version detected is not supported.

For executing this cmdlet, its currently only supported on iDRAC 9 3.30 or newer. iDRAC 7/8 currently doesn't support this cmdlet.

Thanks

jpbolwe commented 5 years ago

Thanks for the help.