<html><body><p><b><font size="2">$ export BMC_IP=xx.xx.xx.xx</font></b><br><br><b><font size="2">$ curl -k -H "Content-Type: application/json" -X POST </font></b><a href="https://$/"><b><font size="2">https://$</font></b></a><b><font size="2">{BMC_IP}/login -d '{"username" : "root", "password" : "0penBmc"}'</font></b><br><font size="2">{</font><br><font size="2"> "token": "hgatflkePN1rla5rpmh2"</font><br><font size="2">}</font><br><br><b><font size="2">$ export bmc_token=hgatflkePN1rla5rpmh2</font></b><br><br><b><font size="2">$ curl -k -H "X-Auth-Token: $bmc_token" -d "{\"data\": []}" -X POST </font></b><a href="https://$bmc_ip/xyz/openbmc_project/dump/action/CreateDump"><b><font size="2">https://$BMC_IP/xyz/openbmc_project/dump/action/CreateDump</font></b></a><br><font size="2">{</font><br><font size="2"> "data": 1,</font><br><font size="2"> "message": "200 OK",</font><br><font size="2"> "status": "ok"</font><br><font size="2">}</font><br><br><b><font size="2">$ curl -k -H "X-Auth-Token: $bmc_token" -X GET </font></b><a href="https://$bmc_ip/xyz/openbmc_project/dump/list"><b><font size="2">https://$BMC_IP/xyz/openbmc_project/dump/list</font></b></a><br><font size="2">{</font><br><font size="2"> "data": [</font><br><font size="2"> "/xyz/openbmc_project/dump/entry",</font><br><font size="2"> "/xyz/openbmc_project/dump/entry/1",</font><br><font size="2"> "/xyz/openbmc_project/dump/internal",</font><br><font size="2"> "/xyz/openbmc_project/dump/internal/manager"</font><br><font size="2"> ],</font><br><font size="2"> "message": "200 OK",</font><br><font size="2"> "status": "ok"</font><br><font size="2">}</font><br><br><b><font size="2">$ curl -k -H "X-Auth-Token: $bmc_token" -X GET </font></b><a href="https://$bmc_ip/xyz/openbmc_project/dump/entry/1"><b><font size="2">https://$BMC_IP/xyz/openbmc_project/dump/entry/1</font></b></a><br><font size="2">{</font><br><font size="2"> "data": {</font><br><font size="2"> "Elapsed": 1573629177,</font><br><font size="2"> "Size": 178364</font><br><font size="2"> },</font><br><font size="2"> "message": "200 OK",</font><br><font size="2"> "status": "ok"</font><br><font size="2">}</font><br><br><b><font size="2" color="#0000FF">Thanks and Regards,</font></b><br><font size="2" color="#0000FF"> George Keishing</font><br><br><br><br><img width="16" height="16" src="cid:1__=8FBB0E22DFB4CFF38f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for "常晓明" ---13-11-2019 12:28:26---Hi, All, I am tring to trigger BMC dumps, follow https://urldefe"><font size="2" color="#424282">"常晓明" ---13-11-2019 12:28:26---Hi, All, I am tring to trigger BMC dumps, follow <a href="INVALID URI REMOVED">INVALID URI REMOVED</a></font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">"常晓明" <xiaoqian1641@163.com></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">"OpenBMC Development" <openbmc@lists.ozlabs.org></font><br><font size="2" color="#5F5F5F">Date: </font><font size="2">13-11-2019 12:28</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">[EXTERNAL] How to trigger BMC dumps</font><br><font size="2" color="#5F5F5F">Sent by: </font><font size="2">"openbmc" <openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org></font><br><hr width="100%" size="2" align="left" noshade style="color:#8091A5; "><br><br><br><font face="Arial">Hi, All,</font><br><br><font face="Arial">I am tring to trigger BMC dumps, follow </font><a href="https://github.com/xcat2/xcat-core/issues/4235"><u><font color="#0000FF" face="Arial">https://github.com/xcat2/xcat-core/issues/4235</font></u></a><br><font face="Arial">1. Login BMC</font><br><font face="Arial"> curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST </font><font face="Arial"><a href="https://127.0.0.1:2443/login">https://127.0.0.1:2443/login</a></font><font face="Arial"> -d "{\"data\": [ \"root\", \"0penBmc\" ] }"</font><br><font face="Arial">2. List available dumps</font><br><font face="Arial"> curl -c cjar -b cjar -k </font><a href="https://127.0.0.1:2443/xyz/openbmc_project/dump/list"><u><font color="#0000FF" face="Arial">https://127.0.0.1:2443/xyz/openbmc_project/dump/list</font></u></a><font face="Arial"> </font><br><font face="Arial">3. When </font><font color="#24292E" face="Segoe UI">Manually trigger a generation of a dump</font><br><font color="#24292E" face="Segoe UI"> curl -c cjar -b cjar -k -H "Content-Type: application/json" -d "{\"data\": []}" -X POST </font><a href="https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump"><u><font color="#0000FF" face="Segoe UI">https://127.0.0.1:2443/xyz/openbmc_project/dump/action/CreateDump</font></u></a><font color="#24292E" face="Segoe UI"> </font><br><font face="Arial"> The cosole display : </font><b><font face="Arial">Unauthorized</font></b><br><font face="Arial">Does anyone know what happened?</font><br><br><font face="Arial">Thanks</font><br><br><font face="Arial">Johny</font><br><br><br>
<p>
<p><p><BR>
</body></html>