How to trigger BMC dumps
George Keishing
gkeishin at in.ibm.com
Wed Nov 13 18:15:50 AEDT 2019
$ export BMC_IP=xx.xx.xx.xx
$ curl -k -H "Content-Type: application/json" -X POST https://$
{BMC_IP}/login -d '{"username" : "root", "password" : "0penBmc"}'
{
"token": "hgatflkePN1rla5rpmh2"
}
$ export bmc_token=hgatflkePN1rla5rpmh2
$ curl -k -H "X-Auth-Token: $bmc_token" -d "{\"data\": []}" -X POST
https://$BMC_IP/xyz/openbmc_project/dump/action/CreateDump
{
"data": 1,
"message": "200 OK",
"status": "ok"
}
$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/list
{
"data": [
"/xyz/openbmc_project/dump/entry",
"/xyz/openbmc_project/dump/entry/1",
"/xyz/openbmc_project/dump/internal",
"/xyz/openbmc_project/dump/internal/manager"
],
"message": "200 OK",
"status": "ok"
}
$ curl -k -H "X-Auth-Token: $bmc_token" -X GET
https://$BMC_IP/xyz/openbmc_project/dump/entry/1
{
"data": {
"Elapsed": 1573629177,
"Size": 178364
},
"message": "200 OK",
"status": "ok"
}
Thanks and Regards,
George Keishing
From: "常晓明" <xiaoqian1641 at 163.com>
To: "OpenBMC Development" <openbmc at lists.ozlabs.org>
Date: 13-11-2019 12:28
Subject: [EXTERNAL] How to trigger BMC dumps
Sent by: "openbmc" <openbmc-bounces
+gkeishin=in.ibm.com at lists.ozlabs.org>
Hi, All,
I am tring to trigger BMC dumps, follow
https://github.com/xcat2/xcat-core/issues/4235
1. Login BMC
curl -c cjar -b cjar -k -H "Content-Type: application/json" -X
POST https://127.0.0.1:2443/login -d "{\"data\": [ \"root\", \"0penBmc
\" ] }"
2. List available dumps
curl -c cjar -b cjar -k
https://127.0.0.1:2443/xyz/openbmc_project/dump/list
3. When Manually trigger a generation of a dump
curl -c cjar -b cjar -k -H "Content-Type: application/json" -d
"{\"data\": []}" -X POST
https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump
The cosole display : Unauthorized
Does anyone know what happened?
Thanks
Johny
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191113/aa46f05e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20191113/aa46f05e/attachment.gif>
More information about the openbmc
mailing list