Note:
Please contact your BMC firmware vendor for acquiring username and password!
[curl]
curl -c cjar -k -u 'User:Password' --request PATCH -H "Content-Type: application/json" -H "If-None-Match: sadads" -H 'Accept: "/"' -d '{"Password" : "NewPassword"}' https://${bmc_ip}/redfish/v1/AccountService/Accounts/1
|
For example:
[curl in Linux]
$ curl -c cjar -k -u 'User:Password' --request PATCH -H "Content-Type: application/json" -H "If-None-Match: sadads" -H 'Accept: "/"' -d '{"Password" : "NewPassword"}' https://192.168.1.17/redfish/v1/AccountService/Accounts/1
Reference
[1] "The Art Of Scripting HTTP Requests Using Curl" https://curl.se/docs/httpscripting.html
[2] "Redfish Schema Supplement", DMTF DSP0268 https://www.dmtf.org/dsp/DSP0268
[3] "Redfish Specification", DMTF DSP0266 https://www.dmtf.org/dsp/DSP0266
[1] "The Art Of Scripting HTTP Requests Using Curl" https://curl.se/docs/httpscripting.html
[2] "Redfish Schema Supplement", DMTF DSP0268 https://www.dmtf.org/dsp/DSP0268
[3] "Redfish Specification", DMTF DSP0266 https://www.dmtf.org/dsp/DSP0266
Last Updated: 08-09-2021
No comments:
Post a Comment