Update README.md and REST-cheatsheet.md
Added:
- Link to REST-cheatsheet.md.
- Command to set Name and NTP server.
Change-Id: I2280d3e5cccae75568ac8cabb0c238a89f0fa138
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/README.md b/README.md
index 1bd6ff6..557ac36 100644
--- a/README.md
+++ b/README.md
@@ -33,6 +33,9 @@
- [kernel-development.md](kernel-development.md): Reference for common
kernel development tasks
+ - [REST-cheatsheet.md](REST-cheatsheet.md): Quick reference for some common
+ curl commands usage.
+
OpenBMC Goals
-------------
diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md
index 3c2ead0..29bfcab 100644
--- a/REST-cheatsheet.md
+++ b/REST-cheatsheet.md
@@ -52,3 +52,15 @@
```
$ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT https://${bmc}/xyz/openbmc_project/control/host0/boot/one_time/attr/BootSource -d '{"data": "xyz.openbmc_project.Control.Boot.Source.Sources.Default"}
```
+* Set NTP and Nameserver:
+
+ Examples using public server.
+ - NTP Server:
+ ```
+ $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": ["pool.ntp.org"] }' https://${bmc}/xyz/openbmc_project/network/eth0/attr/NTPServers
+ ```
+
+ - Name Server:
+ ```
+ $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X PUT -d '{"data": ["time.google.com"] }' https://${bmc}/xyz/openbmc_project/network/eth0/attr/Nameservers
+ ```