Redfish cheatsheet: Enable NTP and add a Server
Tested: Tested these commands.
Change-Id: I7e8a8d9fe9b56331284becc5e937ee5eac323a3c
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/REDFISH-cheatsheet.md b/REDFISH-cheatsheet.md
index cbf2a48..d46fecc 100644
--- a/REDFISH-cheatsheet.md
+++ b/REDFISH-cheatsheet.md
@@ -157,4 +157,17 @@
curl -k -H "X-Auth-Token: $token" -X PATCH https://${bmc}/redfish/v1/Systems/system -d '{"Boot":{"BootSourceOverrideEnabled": "Once","BootSourceOverrideTarget": "None","BootSourceOverrideMode": "UEFI"}}'
```
+---
+
+## Enable NTP
+Add a NTP Server
+```
+curl -k -H "X-Auth-Token: $token" -X PATCH https://${bmc}/redfish/v1/Managers/bmc/NetworkProtocol -d '{"NTP":{"NTPServers":["time.nist.gov"]}}'
+```
+
+Now enable NTP
+```
+curl -k -H "X-Auth-Token: $token" -X PATCH https://${bmc}/redfish/v1/Managers/bmc/NetworkProtocol -d '{"NTP":{"ProtocolEnabled": true}}'
+```
+
[1]: https://www.dmtf.org/standards/redfish