Question: How to Upgrade R2520G6 BIOS and BMC Using Redfish Commands

Question: How to Upgrade R2520G6 BIOS and BMC Using Redfish Commands

Question: How to Upgrade R2520G6 BIOS and BMC Using Redfish Commands

 

Answer: To upgrade the BIOS and BMC firmware on the R2520G6, the process requires the following Redfish command steps:

  1. Define the update targets using PATCH and Redfish commands.
  2. Update the firmware of the defined targets using POST and Redfish commands.
  3. Upload the BIOS and BMC firmware files to the Linux working directory.
  4. Power off the R2520G6 before using Redfish commands to upgrade the BIOS and BMC firmware.

 


 

BIOS upgrade Process

1. Check target item firmware version.

Redfish command:

# curl -u username:password -k -s https://{BMC_IP}/redfish/v1/UpdateService/FirmwareInventory/bios_active

2. Use PATCH to define updating objects.

curl -k -u username:password -X PATCH https://{BMC_IP}/redfish/v1/UpdateService -H "Content-Type: application/json" -d '{"HttpPushUriOptions": {"HttpPushUriApplyTime": {"ApplyTime": "Immediate"}},"HttpPushUriTargets": ["bios_active"],"HttpPushUriTargetsBusy": true,"Oem": {"ApplyOptions": {"ClearConfig": true}}}' -w "\nHTTP_CODE=%{response_code}\n"

Response: 200

3. Use POST to upgrade defined object firmware versions

curl -k -u username:password -X POST https://{BMC_IP}/redfish/v1/UpdateService/update -H "Content-Type: application/octet-stream" --data-binary "@{Image_path}" -w "\nHTTP_CODE=%{response_code}\n"

Response: 202

4. BMC appear one task in Task menu. Waiting about 10 minutes for BIOS upgrade process.

5. Check target item firmware versions after upgrade process finished. 


BMC upgrade Process

1. Check target item firmware version.

Redfish command:

# curl -u username:password -k -s https://{BMC_IP}/redfish/v1/UpdateService/FirmwareInventory/bmc_active

2. Use PATCH to define updating objects.

curl -k -u username:password -X PATCH https://{BMC_IP}/redfish/v1/UpdateService -H "Content-Type: application/json" -d '{"HttpPushUriOptions": {"HttpPushUriApplyTime": {"ApplyTime": "Immediate"}},"HttpPushUriTargets": ["bmc_active"],"HttpPushUriTargetsBusy": true,"Oem": {"ApplyOptions": {"ClearConfig": false}}}' -w "\nHTTP_CODE=%{response_code}\n"

Response: 200

3. Use POST to upgrade defined object firmware versions

curl -k -u username:password -X POST https://{BMC_IP}/redfish/v1/UpdateService/update -H "Content-Type: application/octet-stream" --data-binary "@{Image_path}" -w "\nHTTP_CODE=%{response_code}\n"

Response: 202

4. BMC appear one task in Task menu. Waiting about 20 minutes for BMC upgrade process.

5. Check target item firmware versions after upgrade process finished.