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

BIOS Configuration Changes not being applied after reboot. #84

Closed dhruman closed 4 years ago

dhruman commented 4 years ago

Hello,

I am able to get all the bios settings but when patching the Settings, I get a success but the settings are shown as pending after reboots/power cycle.

dell-redfish-bios-not-updated dell-bios-pending

texroemer commented 4 years ago

Hi @dhruman,

When executing PATCH command for setting BIOS attributes, you must also pass in "@Redfish.SettingsApplyTime" in the body which will generate a job ID URI in the output header response. You can then execute a GET to validate this job ID is marked as schedule, then reboot the server for the job to execute and apply the BIOS changes.

Example of PATCH body:

{'@Redfish.SettingsApplyTime': {'ApplyTime': 'OnReset'}, 'Attributes': {'MemTest': 'Disabled'}}

If needed, you can refer to python script "GetSetBiosAttributesREDFISH.py" which shows this workflow.

Thanks