Servers - General
1846313 Members
3731 Online
110256 Solutions
New Discussion

redfishtool to change BIOS setting

 
GP-TIL
Occasional Contributor

redfishtool to change BIOS setting

I want to change the workload profile in BIOS using redfishtool.  I am using below command. but it is giving error. please suggest

redfishtool -r x.x.x.x -u admin -p ****** raw PATCH -d '{"WorkloadProfile": "Virtualization-MaxPerformance"}' "/redfish/v1/Systems/1/Bios"

redfishtool: Transport: Response Error: status_code: 405 -- Method Not Allowed

4 REPLIES 4
techin
Valued Contributor

Re: redfishtool to change BIOS setting

Can you please provide more details on which server you are using etc...

SLAC_SE
New Member

Re: redfishtool to change BIOS setting

"WorkloadProfile" should be listed under "Attributes'", and you should PATCH bios/settings

Try it these arguments:
-d '{"Attributes": {"WorkloadProfile": "Virtualization-MaxPerformance"}}' /redfish/v1/systems/1/bios/settings

Mamatha_J
HPE Pro

Re: redfishtool to change BIOS setting

Hi @GP-TIL 

1. The /Bios resource is read-only — Redfish only allows GET on it, so a PATCH there gives 405 Method Not Allowed.
2. Modifications must be sent to the BIOS Settings resource, not the top-level BIOS summary.
You should PATCH the /redfish/v1/Systems/1/Bios/Settings URI and wrap the attribute you want to change under "Attributes"
redfishtool -r x.x.x.x -u admin -p ****** raw PATCH \
-d '{"Attributes": {"WorkloadProfile": "Virtualization-MaxPerformance"}}' \
"/redfish/v1/Systems/1/Bios/Settings"

Please take a look at the document, you might find it useful: https://servermanagementportal.ext.hpe.com/docs/redfishservices/ilos/supplementdocuments/biosdoc

 

Thanks & Regards,

Mamatha Ajaraddi



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Mamatha_J
HPE Pro

Re: redfishtool to change BIOS setting

Hi @GP-TIL 

If you find the reply helpful, please consider clicking on the "Thumbs Up/Kudo" icon.

Thanks & Regards,

Mamatha Ajaraddi



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo