-
Notifications
You must be signed in to change notification settings - Fork 69
Description
Very nice tool. I am using it against a supermicro X11DPU system.
One thing I wanted to do thru redfishtool was to change a BIOS setting. First I want to see what all the Bios "attributes" are. Using Curl, I can do this with
GET //sysname/redfish/v1/Systems/1/Bios.
Using redfish tool, must I use the "raw" subcommand with the GET verb to accomplish this or is there a higher level way to do this?
Then I want to change one of those settings, let's say the setting for CoresEnabled. Using Curl, I can do this with
curl -sk -u ADMIN:ADMIN --data '{"CoresEnabled": 2}' -X PATCH https://sysname/redfish/v1/Systems/1/Bios
Again, using redfishtool, am I required to use the "raw" subcommand with the PATCH verb to accomplish this?
I used this:
python3 redfishtool.py -A Basic -r sysname -u ADMIN -p ADMIN raw PATCH --data='{"CoresEnabled": 2}' /redfish/v1/Systems/1/Bios
On this particular system, the response to this command has a statuscode 202 with the JSON response as follows:
{
"Success": {
"Message": "Successfully Completed Request.",
"code": "Base.v1_0_0.Success"
}
}
redfishtool responds with
redfishtool: Transport: processing response status codes
I am not sure if this is an error, but it looks like one.
I can confirm that if I reset the system, the new BIOS settings do take effect. (Maybe that's the reason for the 202 response since they don't take effect immediately?)
Question: should 202 response be considered success in this context.