|
Post by ynissan on Jul 4, 2024 8:28:28 GMT
Hello all, To set the ForceUpdate field to true with the multipart action, one can use this command: curl -k -u '<username>':'<password>' https://<IP_ADDR>/redfish/v1/UpdateService/update-multipart -F 'UpdateParameters={"ForceUpdate":true};type=application/octet-stream' -F UpdateFile=@<package_path> I wish to set the ForceUpdate field to true as part of a SimpleUpdate action like this one: curl -k -u '<username>':'<password>' -H "Content-Type: application/json" -X POST -d '{"TransferProtocol":"HTTP", "ImageURI":"<REMOTE_IP_ADDR>/<REMOTE_PATH>","Targets":["redfish/v1/UpdateService/FirmwareInventory/<FIRMWARE_ITEM>"]}' https://<IP_ADDR>/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate Is this possible? If so, how can integrate this into my Redfish command? Thank you, Yuval CC tomjoseph
|
|
|
Post by mraineri on Jul 5, 2024 2:02:44 GMT
You'll need to add the ForceUpdate parameter to your request in the body specified by the -d argument with the other action parameters. It would look like this:
curl -k -u '<username>':'<password>' -H "Content-Type: application/json" -X POST -d '{"TransferProtocol":"HTTP", "ImageURI":"<REMOTE_IP_ADDR>/<REMOTE_PATH>","Targets":["redfish/v1/UpdateService/FirmwareInventory/<FIRMWARE_ITEM>"], "ForceUpdate": true}' https://<IP_ADDR>/redfish/v1/UpdateService/Actions/UpdateService.SimpleUpdate
|
|
|
Post by ynissan on Jul 9, 2024 11:30:18 GMT
mraineri, thank you for you response. Unfortunately, I tried this and the command failed with the following output: { "error": { "@message.ExtendedInfo": [ { "@odata.type": "#Message.v1_1_1.Message", "Message": "The property ForceUpdate is not in the list of valid properties for the resource.", "MessageArgs": [ "ForceUpdate" ], "MessageId": "Base.1.16.0.PropertyUnknown", "MessageSeverity": "Warning", "Resolution": "Remove the unknown property from the request body and resubmit the request if the operation failed." }, { "@odata.type": "#Message.v1_1_1.Message", "Message": "The requested resource of type Targets named '' was not found.", "MessageArgs": [ "Targets", "" ], "MessageId": "Base.1.16.0.ResourceNotFound", "MessageSeverity": "Critical", "Resolution": "Provide a valid resource identifier and resubmit the request." } ], "code": "Base.1.11.0.GeneralError", "message": "A general error has occurred. See Resolution for information on how to resolve the error." } }
|
|
|
Post by mraineri on Jul 9, 2024 12:44:45 GMT
It looks like ForceUpdate isn't supported by the service and neither is the target you specified. Per the standard, you're doing everything correctly. You'd need to reach out to the vendor to see if they are missing functionality in their service.
|
|