summaryrefslogtreecommitdiffstats
path: root/README.md
blob: cb0c4da17d91534d697b7522e5c066716a84dd1e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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\": [] }"

OpenPOWER on IntegriCloud