diff options
-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 + ``` |