[curl]
curl -b cjar -k https://${bmc_ip}/xyz/openbmc_project/logging/list
|
For example
[curl in Linux]
$ curl -b cjar -k https://192.168.88.38/xyz/openbmc_project/logging/list
{
"data": [
"/xyz/openbmc_project/logging/internal/manager",
"/xyz/openbmc_project/logging/entry/1"
],
"message": "200 OK",
"status": "ok"
}
{
"data": [
"/xyz/openbmc_project/logging/internal/manager",
"/xyz/openbmc_project/logging/entry/1"
],
"message": "200 OK",
"status": "ok"
}
Entry
[curl]
Get All Logging Entry
curl -b cjar -k https://${bmc_ip}/xyz/openbmc_project/logging/entry/enumerate
|
curl -b cjar -k https://${bmc_ip}/xyz/openbmc_project/logging/entry/<Entry_Number>
|
curl -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data" : []}' https://${bmc_ip}/xyz/openbmc_project/logging/entry/<Entry_Number>/action/Delete
|
curl -b cjar -k -X DELETE https://${bmc_ip}/xyz/openbmc_project/logging/entry/<Entry_Number>
|
curl -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data" : []}' https://${bmc_ip}/xyz/openbmc_project/logging/action/deleteAll
|
For example
[curl in Linux]
$ curl -b cjar -k https://192.168.88.38/xyz/openbmc_project/logging/entry/enumerate
{
"data": {
"/xyz/openbmc_project/logging/entry/1": {
"AdditionalData": [
"_PID=1719"
],
"Id": 1,
"Message": "org.open_power.Host.Boot.Error.Checkstop",
"Resolved": 0,
"Severity": "xyz.openbmc_project.Logging.Entry.Level.Error",
"Timestamp": 1517466197149,
"associations": []
}
},
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k https://192.168.88.38/xyz/openbmc_project/logging/entry/1
{
"data": {
"AdditionalData": [
"_PID=1719"
],
"Id": 1,
"Message": "org.open_power.Host.Boot.Error.Checkstop",
"Resolved": 0,
"Severity": "xyz.openbmc_project.Logging.Entry.Level.Error",
"Timestamp": 1517466197149,
"associations": []
},
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k -X DELETE https://192.168.88.38/xyz/openbmc_project/logging/entry/1
{
"data": null,
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data" : []}' htps://192.168.88.38/xyz/openbmc_project/logging/action/deleteAll
{
"data": null,
"message": "200 OK",
"status": "ok"
}
{
"data": {
"/xyz/openbmc_project/logging/entry/1": {
"AdditionalData": [
"_PID=1719"
],
"Id": 1,
"Message": "org.open_power.Host.Boot.Error.Checkstop",
"Resolved": 0,
"Severity": "xyz.openbmc_project.Logging.Entry.Level.Error",
"Timestamp": 1517466197149,
"associations": []
}
},
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k https://192.168.88.38/xyz/openbmc_project/logging/entry/1
{
"data": {
"AdditionalData": [
"_PID=1719"
],
"Id": 1,
"Message": "org.open_power.Host.Boot.Error.Checkstop",
"Resolved": 0,
"Severity": "xyz.openbmc_project.Logging.Entry.Level.Error",
"Timestamp": 1517466197149,
"associations": []
},
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k -X DELETE https://192.168.88.38/xyz/openbmc_project/logging/entry/1
{
"data": null,
"message": "200 OK",
"status": "ok"
}
$ curl -b cjar -k -H "Content-Type: application/json" -X POST -d '{"data" : []}' htps://192.168.88.38/xyz/openbmc_project/logging/action/deleteAll
{
"data": null,
"message": "200 OK",
"status": "ok"
}
Internal Manager of Logging
Blank
Reference
[1] "OpenBMC" https://github.com/openbmc/
[2] "OpenBMC REST cheat sheet" https://github.com/openbmc/docs/blob/master/REST-cheatsheet.md
[3] "Host Management with OpenBMC" https://github.com/openbmc/docs/blob/master/host-management.md
[4] "OpenBMC REST API" https://github.com/openbmc/docs/blob/master/rest-api.md
[5] "OpenBMC D-Bus API" https://github.com/openbmc/docs/blob/master/deprecated/dbus-interfaces.md
[1] "OpenBMC" https://github.com/openbmc/
[2] "OpenBMC REST cheat sheet" https://github.com/openbmc/docs/blob/master/REST-cheatsheet.md
[3] "Host Management with OpenBMC" https://github.com/openbmc/docs/blob/master/host-management.md
[4] "OpenBMC REST API" https://github.com/openbmc/docs/blob/master/rest-api.md
[5] "OpenBMC D-Bus API" https://github.com/openbmc/docs/blob/master/deprecated/dbus-interfaces.md
Last Updated: 23-02-2018
No comments:
Post a Comment