Servers - General
1829214 Members
2283 Online
109987 Solutions
New Discussion

ComputerSystem.Reset Action not working from via ILO Amplifier redfish API

 
sean0brien
Occasional Contributor

ComputerSystem.Reset Action not working from via ILO Amplifier redfish API

I'm having issues with the /Actions/ComputerSystem.Reset/ action via Ilo Amplifier.  For some reason it is returning a method not allowed.  The underlying code I'm using is powershell, but have tested in bash and python and get the same results.

This action is documentated as an example in the Ilo Amplifier Redfish API. documenation. https://hewlettpackard.github.io/iLOAmpPack-Redfish-API-Docs/?shell#performing-actions

Example action issue with ILO amplifier
curl https://$($IloAmpIp)/redfish/v1/systems/$($SystemId)/Actions/ComputerSystem.Reset/ -H "Content-Type: application/json" --request POST --data '{"ResetType": "On"}' -u *******:******** --insecure
{"@odata.etag":"W/\"11815A93\"","@odata.type":"#ExtendedInfo.1.0.0.ExtendedInfo","error":{"@Message.ExtendedInfo":[{"@odata.type":"#Message.1.0.0.Message","MessageId":"HpeWolfram.1.4.MethodNotAllowed"}],"code":"Wolfram.1.0.ExtendedInfo","message":"See @Message.ExtendedInfo for more information."}}

When testing using this action directly on the ILO it works fine.

Example of going direct to ilo without action issue
curl https://$($IloIp)/redfish/v1/Systems/1/Actions/ComputerSystem.Reset/ -H "Content-Type: application/json" --request POST --data '{"ResetType": "On"}' -u *******:******** --insecure
{"Messages":[{"MessageID":"Base.0.10.Success"}],"Type":"ExtendedError.1.0.0","error":{"@Message.ExtendedInfo":[{"MessageID":"Base.0.10.Success"}],"code":"iLO.0.10.ExtendedInfo","message":"See @Message.ExtendedInfo for more information."}}

There seems to be an issue calling this action from Ilo Amplifier.

One other observation is based on the redfish specification documenation. "To determine the available actions and the valid parameter values for those actions, clients can query a
Resource directly" ( https://www.dmtf.org/sites/default/files/standards/documents/DSP0266_1.8.0.pdf page 48)

When querying the system object in Ilo amplifier, there is no data returned on available actions. However when querying the system against the ilo itself, the data is returned as expected.
"AvailableActions":[{"Action":"Reset","Capabilities":[{"AllowableValues":["On","ForceOff","ForceRestart","Nmi","PushPowerButton"],"PropertyName":"ResetType"}]}]

iLO Amplifier Pack v2.16

2 REPLIES 2
support_s
System Recommended

Query: ComputerSystem.Reset Action not working from via ILO Amplifier redfish API

System recommended content:

1. HPE iLO 5 2.72 User Guide | iLO RESTful API

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

ManBha
HPE Pro

Re: ComputerSystem.Reset Action not working from via ILO Amplifier redfish API

Hello,

 

This might need a remote session to perform further troubleshooting.

 

You can also log a new case :HPE Support Case Manager

 

Thanks.

 

 

I work for HPE.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]

Accept or Kudo