HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
86 stars 41 forks source link

Error 405 -- Method Not Allowed #4

Closed tdeneau closed 6 years ago

tdeneau commented 6 years ago

Not sure if this is appropriate for this project and it may be more of an HP DL360 question but...

I am trying to use Redfishtool (https://github.com/DMTF/Redfishtool) to change a BIOS setting on an HP DL360. I am using the same general technique that I used on other Redfish implementations (like supermicro) and it worked fine there.

python3 redfishtool.py -r ilomxq61101ng -u name -p password raw PATCH -d '{"ProcHyperthreading": "Disabled"}' /redfish/v1/systems/1/bios

but on the DL360 this gives: redfishtool: Transport: Response Error: status_code: 405 -- Method Not Allowed

Should I be able to change a BIOS setting in this way?

Yergidy commented 6 years ago

/redfish/v1/systems/1/bios Is the readonly URI. /redfish/v1/systems/1/bios/settings Is the PATCHable URI for the bios settings. This command should work on that URI.

tdeneau commented 6 years ago

Yes things work on bios/settings URI. A question from someone new to Redfish... For those implementations that actually do support PATCHing the Bios settings, will the exact URI always be implementation-dependent?

Yergidy commented 6 years ago

@tdeneau It is advised to work using types as URIs are subject to change while types have versioning attached that can be monitored. However, I believe it is redfish standard to have bios setting be changed using the ~/bios/settings URI.

Yergidy commented 6 years ago

Closing this issue if there are no further questions.