diff options
-rw-r--r-- | README.md | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md new file mode 100644 index 0000000..cb0c4da --- /dev/null +++ b/README.md @@ -0,0 +1,32 @@ +# phosphor-logging +phosphor logging provides mechanism for common event and logging creation based +on information from the journal log. + +## To Build +``` +To build this package, do the following steps: + + 1. ./bootstrap.sh + 2. ./configure ${CONFIGURE_FLAGS} + 3. make + +To clean the repository run `./bootstrap.sh clean`. +``` +## REST command to delete an error + + curl -c cjar -k -X POST -H "Content-Type: application/json" \ + -d '{"data": [ "root", "<root password>" ] }' https://<BMC IP>/login + + curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST \ + -d '{"data": []}' \ + https://<BMC IP>/xyz/openbmc_project/logging/entry/<entry num>/action/Delete + +## REST command to delete all errors + + curl -c cjar -k -X POST -H "Content-Type: application/json" \ + -d '{"data": [ "root", "<root password>" ] }' https://<<BMC IP>/login + + curl -c cjar -b cjar -k -H "Content-Type: application/json" \ + -X POST https://<<BMC IP>/xyz/openbmc_project/logging/action/deleteAll \ + -d "{\"data\": [] }" + |