From d986cb1f7ccdf2d74dc62001a6508599b8614cc3 Mon Sep 17 00:00:00 2001 From: Andrew Geissler Date: Wed, 24 Oct 2018 07:57:18 -0500 Subject: Add in command to display event logs A common use case is to display the details of the event logs on the system Change-Id: Iedf8ec532709f728525d5030416ced7bae3de662 Signed-off-by: Andrew Geissler --- REST-cheatsheet.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/REST-cheatsheet.md b/REST-cheatsheet.md index 3bd1abb..1bd3408 100644 --- a/REST-cheatsheet.md +++ b/REST-cheatsheet.md @@ -46,6 +46,11 @@ 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 -d '{"data":"xyz.openbmc_project.State.BMC.Transition.Reboot"}' https://${bmc}//xyz/openbmc_project/state/bmc0/attr/RequestedBMCTransition ``` +* Display logging entries: + ``` + $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X GET https://${bmc}/xyz/openbmc_project/logging/entry/enumerate + ``` + * Delete logging entries: ``` $ curl -c cjar -b cjar -k -H "Content-Type: application/json" -X DELETE https://${bmc}/xyz/openbmc_project/logging/entry/ -- cgit v1.2.3