diff options
author | George Keishing <gkeishin@in.ibm.com> | 2018-02-16 11:41:52 -0600 |
---|---|---|
committer | George Keishing <gkeishin@in.ibm.com> | 2018-02-16 12:58:47 -0600 |
commit | 811d3a734f8373d47227d41e356ab73c712afea7 (patch) | |
tree | 77f1df45880f5f92930d9b9038229e1b2ec3a16f | |
parent | 85b67c0efbb657affac65e4067c33a1581e0d64b (diff) | |
download | openbmc-docs-811d3a734f8373d47227d41e356ab73c712afea7.tar.gz openbmc-docs-811d3a734f8373d47227d41e356ab73c712afea7.zip |
Update REST-cheatsheet.md documentation
Added:
- Factory reset the system using curl commands.
Change-Id: Ie8f2acde72cf3f7f88846fefbcc1a2d511ef39ee
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
-rw-r--r-- | REST-cheatsheet.md | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md index 699f017..7067105 100644 --- a/REST-cheatsheet.md +++ b/REST-cheatsheet.md @@ -149,3 +149,22 @@ This document is intended to provide a set of REST client commands for OpenBMC u $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST https://${bmc}/login -d "{\"data\": [ \"root\", \"0penBmc\" ] }" $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -d "{\"data\": [\"abc123\"] }" -X POST https://${bmc}/xyz/openbmc_project/user/root/action/SetPassword ``` + +* Factory Reset: + + - Factory reset host and BMC software: + ``` + $ curl -c cjar -b cjar -k -H 'Content-Type: application/json' -X POST -d '{"data":[]}' https://${bmc}/xyz/openbmc_project/software/action/Reset + ``` + + - Factory reset network setting: + ``` + $ curl -c cjar -b cjar -k -H 'Content-Type: application/json' -X POST -d '{"data":[]}' https://${bmc}/xyz/openbmc_project/network/action/Reset + ``` + + - Enable field mode: + ``` + $ curl -c cjar -b cjar -k -H 'Content-Type: application/json' -X PUT -d '{"data":1}' https://${bmc}/xyz/openbmc_project/software/attr/FieldModeEnabled + ``` + + and then reboot BMC. |