<html><body><p><b><font size="2">You can simply use this tool from DMTF redfish </font></b><a href="https://github.com/DMTF/Redfishtool"><b><font size="2">https://github.com/DMTF/Redfishtool</font></b></a><br><br><font size="2">and run the command as </font><br><br><b><font size="2">$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw POST /xyz/openbmc_project/dump/action/CreateDump --data="{\"data\": []}"</font></b><br><font size="2">{</font><br><font size="2"> "data": 2,</font><br><font size="2"> "status": "ok",</font><br><font size="2"> "message": "200 OK"</font><br><font size="2">}</font><br><br><br><b><font size="2">$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw GET /xyz/openbmc_project/dump/list</font></b><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/entry/2",</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"> "status": "ok",</font><br><font size="2"> "message": "200 OK"</font><br><font size="2">}</font><br><br><br><b><font size="2">$ redfishtool -r xx.xx.xx.xx -u root -p 0penBmc -S Always raw GET /xyz/openbmc_project/dump/entry/2</font></b><br><font size="2">{</font><br><font size="2"> "status": "ok",</font><br><font size="2"> "message": "200 OK",</font><br><font size="2"> "data": {</font><br><font size="2"> "Elapsed": 1573629994,</font><br><font size="2"> "Size": 196276</font><br><font size="2"> }</font><br><font size="2">}</font><br><font size="2"><br></font><br><b><font size="2" color="#0000FF">Thanks and Regards,</font></b><br><font size="2" color="#0000FF"> George Keishing</font><br><font size="2" color="#0000FF"> IBM Systems &Technology Lab, Firmware Development,</font><br><i><font size="2">“</font></i> There isn't enough time in a day to be lazy!!! <font size="2">.”</font><br><img src="cid:1__=8FBB0E22DFBAA8928f9e8a93df938690918c8FB@" width="60" height="90"><br><br><br><img width="16" height="16" src="cid:2__=8FBB0E22DFBAA8928f9e8a93df938690918c8FB@" border="0" alt="Inactive hide details for "George Keishing" ---13-11-2019 12:48:15---$ export BMC_IP=xx.xx.xx.xx $ curl -k -H "Content-Type: ap"><font size="2" color="#424282">"George Keishing" ---13-11-2019 12:48:15---$ export BMC_IP=xx.xx.xx.xx $ curl -k -H "Content-Type: application/json" -X POST <a href="https://urldefense">https://urldefense</a></font><br><br><font size="2" color="#5F5F5F">From: </font><font size="2">"George Keishing" <gkeishin@in.ibm.com></font><br><font size="2" color="#5F5F5F">To: </font><font size="2">"常晓明" <xiaoqian1641@163.com></font><br><font size="2" color="#5F5F5F">Cc: </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:48</font><br><font size="2" color="#5F5F5F">Subject: </font><font size="2">[EXTERNAL] Re: 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><b><font size="2">$ export BMC_IP=xx.xx.xx.xx</font></b><br><b><font size="2"><br>$ curl -k -H "Content-Type: application/json" -X POST </font></b><a href="https://$/"><b><u><font size="2" color="#0000FF">https://$</font></u></b></a><b><font size="2">{BMC_IP}/login -d '{"username" : "root", "password" : "0penBmc"}'</font></b><font size="2"><br>{<br>"token": "hgatflkePN1rla5rpmh2"<br>}</font><br><b><font size="2"><br>$ export bmc_token=hgatflkePN1rla5rpmh2</font></b><br><b><font size="2"><br>$ 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><u><font size="2" color="#0000FF">https://$BMC_IP/xyz/openbmc_project/dump/action/CreateDump</font></u></b></a><font size="2"><br>{<br>"data": 1,<br>"message": "200 OK",<br>"status": "ok"<br>}</font><br><b><font size="2"><br>$ curl -k -H "X-Auth-Token: $bmc_token" -X GET </font></b><a href="https://$bmc_ip/xyz/openbmc_project/dump/list"><b><u><font size="2" color="#0000FF">https://$BMC_IP/xyz/openbmc_project/dump/list</font></u></b></a><font size="2"><br>{<br>"data": [<br>"/xyz/openbmc_project/dump/entry",<br>"/xyz/openbmc_project/dump/entry/1",<br>"/xyz/openbmc_project/dump/internal",<br>"/xyz/openbmc_project/dump/internal/manager"<br>],<br>"message": "200 OK",<br>"status": "ok"<br>}</font><br><b><font size="2"><br>$ curl -k -H "X-Auth-Token: $bmc_token" -X GET </font></b><a href="https://$bmc_ip/xyz/openbmc_project/dump/entry/1"><b><u><font size="2" color="#0000FF">https://$BMC_IP/xyz/openbmc_project/dump/entry/1</font></u></b></a><font size="2"><br>{<br>"data": {<br>"Elapsed": 1573629177,<br>"Size": 178364<br>},<br>"message": "200 OK",<br>"status": "ok"<br>}</font><br><b><font size="2" color="#0000FF"><br>Thanks and Regards,</font></b><font size="2" color="#0000FF"><br>George Keishing</font><br><br><br><br><img src="cid:2__=8FBB0E22DFBAA8928f9e8a93df938690918c8FB@" width="16" height="16" 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 </font><a href="INVALID%20URI%20REMOVED"><u><font size="2" color="#0000FF">INVALID URI REMOVED</font></u></a><br><font size="2" color="#5F5F5F"><br>From: </font><font size="2">"常晓明" <xiaoqian1641@163.com></font><font size="2" color="#5F5F5F"><br>To: </font><font size="2">"OpenBMC Development" <openbmc@lists.ozlabs.org></font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">13-11-2019 12:28</font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">[EXTERNAL] How to trigger BMC dumps</font><font size="2" color="#5F5F5F"><br>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><br><br><font face="Arial"><br>Hi, All,</font><br><font face="Arial"><br>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><font face="Arial"><br>1. Login BMC<br>curl -c cjar -b cjar -k -H "Content-Type: application/json" -X POST </font><a href="https://127.0.0.1:2443/login"><u><font color="#0000FF" face="Arial">https://127.0.0.1:2443/login</font></u></a><font face="Arial"> -d "{\"data\": [ \"root\", \"0penBmc\" ] }"<br>2. List available dumps<br>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"> <br>3. When </font><font color="#24292E" face="Segoe UI">Manually trigger a generation of a dump<br>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><font face="Arial"><br>The cosole display : </font><b><font face="Arial">Unauthorized</font></b><font face="Arial"><br>Does anyone know what happened?</font><br><font face="Arial"><br>Thanks</font><br><font face="Arial"><br>Johny</font><br><br>
<p><p><p><BR>
</body></html>