diff options
author | George Keishing <gkeishin@in.ibm.com> | 2018-01-11 22:48:56 -0600 |
---|---|---|
committer | Gunnar Mills <gmills@us.ibm.com> | 2018-01-17 14:31:25 +0000 |
commit | 2760941bb881b682eb7dea90f2cfca82f0a15ee7 (patch) | |
tree | 7eef5f54f84ff058447ee14f7af28e6ebecc084e | |
parent | de21daa7ad3ff0e1964f74511321ef028f61c43d (diff) | |
download | openbmc-docs-2760941bb881b682eb7dea90f2cfca82f0a15ee7.tar.gz openbmc-docs-2760941bb881b682eb7dea90f2cfca82f0a15ee7.zip |
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>
-rw-r--r-- | README.md | 3 | ||||
-rw-r--r-- | REST-cheatsheet.md | 12 |
2 files changed, 15 insertions, 0 deletions
@@ -33,6 +33,9 @@ These documents contain details on developing OpenBMC code itself - [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 @@ 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 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 + ``` |