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>
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 @@
$ 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.