greg
Minnow
Posts: 1
|
Post by greg on Apr 16, 2019 22:01:19 GMT
Hello, Can you help me with command/script how to the Force Restart (for example). Any command line tools, like python etc. The specification doesn't have a very clear explanation and with no good examples for me. I have attached the screenshot, unfortunately i was not successful to do that. I appreciate, thanks!
|
|
|
Post by mraineri on Apr 17, 2019 19:15:09 GMT
You're close; the data in the body for the request needs to contain "ResetType": <TypeOfReset>.
{ "ResetType": "ForceRestart" }
The sections "6.4.4.7. Actions (POST)" and "6.5.4.7. Actions property" has some examples of this with a ComputerSystem, but the Manager version of the Reset action has the exact same parameter. You might also need to perform a GET on the Manager resource (/redfish/v1/Managers/Self) in order to see the values you're allowed to pass in for "ResetType".
Hope this helps!
|
|