<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks George for your inputs,<br>
<br>
The host is accessible from test server via SSH, since we need to communicate host from BMC to confirm obmc-console-client is working, we need interactive session, maybe SSHLibrary will be helpful to do the communication.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Jayashree<br>
<br>
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><a name="_____replyseparator"></a><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> George Keishing <gkeishin@in.ibm.com>
<br>
<b>Sent:</b> Monday, August 10, 2020 10:15 PM<br>
<b>To:</b> Jayashree D <jayashree-d@hcl.com><br>
<b>Cc:</b> openbmc@lists.ozlabs.org; openbmc <openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org><br>
<b>Subject:</b> Re: [EXTERNAL] RE: Host related testcases in openbmc-test-automation<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto;line-height:12.0pt;background:#FFEB9C">
<span style="font-size:10.0pt;color:red">[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]</span><o:p></o:p></p>
<div>
<p><span style="font-size:10.0pt">Hi Jayashree,</span><br>
<br>
<span style="font-size:10.0pt">The current the test infrastructure is over SSH to Host / remote server to login to OS partition, execute commands, only if the partition is accessible from the test server where the test code is executed.</span><br>
<br>
<span style="font-size:10.0pt">Reading from your note, it sounded like the OS partition is not configured over network and can't be access from test server but through BMC only? is that correct assumption ?</span><br>
<br>
<span style="font-size:10.0pt">To connect a session to BMC SSH and then invoke </span>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">obmc-console-client</span><span style="font-size:10.0pt"> and then try to login on a spawn session looks like job for interactive shell, however, this may not really work well.</span><br>
<br>
<span style="font-size:10.0pt">Having said that, you can look at this </span><a href="https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobotframework.org%2FSSHLibrary%2FSSHLibrary.html%23Write&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394411535&sdata=gxQyvKUXtQMwDNhwxpeNXW9%2Fa82IZBkdHhhEWGA1S04%3D&reserved=0">http://robotframework.org/SSHLibrary/SSHLibrary.html#Write</a>
<span style="font-size:10.0pt">to do interactive shell </span><a href="https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Frobotframework.org%2FSSHLibrary%2FSSHLibrary.html%23Interactive%2520shells&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394421530&sdata=rZYP%2FG6kgckPyMaVl0s60pRCQhsPGl%2B3gwC0CJzeli4%3D&reserved=0">http://robotframework.org/SSHLibrary/SSHLibrary.html#Interactive%20shells</a>
<br>
<br>
<span style="font-size:10.0pt">We got a bit older code over telnet interactive shell
</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fserial_connection%2Fserial_console_client.robot%23L12&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394421530&sdata=s974%2BPmIVCYj%2FmNSoF8D7LC7W3VswEpOqGS2UtJ4NJE%3D&reserved=0">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/serial_connection/serial_console_client.robot#L12</a>
<span style="font-size:10.0pt">see if that example helps as well.</span><br>
<br>
<br>
<br>
<span style="font-size:10.0pt">On another note, assuming, you want to make sure the OS is booted good and need a check point or look up reference data, probably, you can check /var/log/obmc-console.log from the test code and look for the OS console message.</span><br>
<br>
<span style="font-size:10.0pt">Nevertheless, if you don't provide the host credential/ or off the network, the BMC + host state would certainly give confidence that the Host OS partition start booting, which the test is doing so when powered on via test code
 by checking the states bellow.</span><br>
<br>
<span style="font-size:10.0pt">CurrentBMCState : xyz.openbmc_project.State.BMC.BMCState.Ready</span><br>
<span style="font-size:10.0pt">CurrentPowerState : xyz.openbmc_project.State.Chassis.PowerState.On</span><br>
<span style="font-size:10.0pt">CurrentHostState : xyz.openbmc_project.State.Host.HostState.Running</span><br>
<span style="font-size:10.0pt">BootProgress : xyz.openbmc_project.State.Boot.Progress.ProgressStages.OSStart</span><br>
<span style="font-size:10.0pt">OperatingSystemState: xyz.openbmc_project.State.OperatingSystem.Status.OSStatus.BootComplete</span><br>
<br>
<b><span style="font-size:10.0pt;color:blue">Thanks and Regards,</span></b><br>
<span style="font-size:10.0pt;color:blue">George Keishing</span><br>
<br>
<br>
<br>
<img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="_x0000_i1025" src="cid:image001.gif@01D6709B.B8267C20" alt="Inactive hide details for Jayashree D ---10-08-2020 10:51:06 AM---Hi George, In obmc-console feature, after login to BMC we wil"><span style="font-size:10.0pt;color:#424282">Jayashree
 D ---10-08-2020 10:51:06 AM---Hi George, In obmc-console feature, after login to BMC we will run “obmc-console-client” and will gi</span><br>
<br>
<span style="font-size:10.0pt;color:#5F5F5F">From: </span><span style="font-size:10.0pt">Jayashree D <<a href="mailto:jayashree-d@hcl.com">jayashree-d@hcl.com</a>></span><br>
<span style="font-size:10.0pt;color:#5F5F5F">To: </span><span style="font-size:10.0pt">George Keishing <<a href="mailto:gkeishin@in.ibm.com">gkeishin@in.ibm.com</a>></span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Cc: </span><span style="font-size:10.0pt">"<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a>" <<a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a>></span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Date: </span><span style="font-size:10.0pt">10-08-2020 10:51 AM</span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Subject: </span><span style="font-size:10.0pt">[EXTERNAL] RE: Host related testcases in openbmc-test-automation</span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Sent by: </span><span style="font-size:10.0pt">"openbmc" <<a href="mailto:openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org">openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org</a>></span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" noshade="" style="color:#8091A5" align="left">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Hi George,</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">In obmc-console feature, after login to BMC we will run “obmc-console-client” and will give “ENTER” to connect the host by giving username and password.</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">root@tiogapass:~# obmc-console-client # BMC Execute Command</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D"># ENTER</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">CentOS Linux 8 (Core)</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Kernel 5.2.9-91_fbk10_3371_ge007350ae172 on an x86_64</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">localhost login: # Host Username</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Password: # Host Password</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">[root@localhost ~]#</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D"><br>
</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">We can run obmc-console-client using BMC Execute Command, then ENTER should be given and OS Username and password.<br>
Is there any way to run the above commands “ENTER” in automation scripts after obmc-console-client?</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Regards,</span><br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Jayashree </span><br>
<br>
<b><span style="font-family:"Calibri",sans-serif">From:</span></b><span style="font-family:"Calibri",sans-serif"> Jayashree D
<b><br>
Sent:</b> Thursday, August 6, 2020 8:20 PM<b><br>
To:</b> George Keishing <<a href="mailto:gkeishin@in.ibm.com">gkeishin@in.ibm.com</a>><b><br>
Cc:</b> <a href="mailto:openbmc@lists.ozlabs.org">openbmc@lists.ozlabs.org</a><b><br>
Subject:</b> RE: Host related testcases in openbmc-test-automation</span><br>
<br>
<span style="font-family:"Calibri",sans-serif;color:#1F497D">Thanks George, I will look into this keywords.</span><br>
<br>
<b><span style="font-family:"Calibri",sans-serif">From:</span></b><span style="font-family:"Calibri",sans-serif"> George Keishing <</span><a href="mailto:gkeishin@in.ibm.com"><span style="font-family:"Calibri",sans-serif">gkeishin@in.ibm.com</span></a><span style="font-family:"Calibri",sans-serif">>
<b><br>
Sent:</b> Thursday, August 6, 2020 6:12 PM<b><br>
To:</b> Jayashree D <</span><a href="mailto:jayashree-d@hcl.com"><span style="font-family:"Calibri",sans-serif">jayashree-d@hcl.com</span></a><span style="font-family:"Calibri",sans-serif">><b><br>
Cc:</b> </span><a href="mailto:openbmc@lists.ozlabs.org"><span style="font-family:"Calibri",sans-serif">openbmc@lists.ozlabs.org</span></a><b><span style="font-family:"Calibri",sans-serif"><br>
Subject:</span></b><span style="font-family:"Calibri",sans-serif"> Re: Host related testcases in openbmc-test-automation</span><br>
<br>
<span style="font-size:10.0pt;color:red">[CAUTION: This Email is from outside the Organization. Unless you trust the sender, Don’t click links or open attachments as it may be a Phishing email, which can steal your Information and compromise your Computer.]</span>
<o:p></o:p></p>
<p><span style="font-size:10.0pt">Jayashree,</span><br>
<span style="font-size:10.0pt"><br>
See if this info helps to get you started what you are looking for. </span><br>
<b><span style="font-size:10.0pt"><br>
1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.</span></b><br>
<span style="font-size:10.0pt"><br>
Most of the test code uses the login BMC/host, check connect via REST/SSH/Ping to do the check on connection</span><br>
<span style="font-size:10.0pt"><br>
You can look at this keyword used:<br>
Example:</span><br>
<span style="font-size:10.0pt"><br>
-login to BMC and execute : BMC Execute Command</span><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fbmc-5Fssh-5Futils.py-2523L12-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366004707-26sdata-3DFWn1U2v3YL44mE4-252B-252FLQJ58-252BqBSn57YA9qD-252FuZku2Ju4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DBuyo-uV2qzkCTAE4AABZtGARDr1UV0K8PZ5HxRg0YEY%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394431532&sdata=oYisywTL%2B3HtGw2v9cxlCVNXbKwQ9Gns%2F0koDsNyuo0%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L12</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fextended-252Ftest-5Fbasic-5Fci.robot-2523L74-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366004707-26sdata-3DIQhFENJiIkzsS3lEitdpBX6eBInNIUCMd9sO408AF8c-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3Dc8Sc93H3cNNHqat9WNjskezjgDpU577n76hFGlidapU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394431532&sdata=d1zPfciQNYBf2PfP4WKxWDhYvKWJdvTXS7hrFypPMOc%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L74</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fextended-252Ftest-5Fbasic-5Fci.robot-2523L96-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366014703-26sdata-3DysP5zMeVa7UODKItQ30fDFFu9hjqh8a7WDxjuCc-252Fu1I-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DJfnhTLGK9pp8HJrIqllNjhvBLpAqct34zfVzvFxLRC8%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394441521&sdata=LjeWgg9dfSPQ%2FchlT2Mzqjx3UjqB%2BhLMP3BKRBc1wxY%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L96</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fredfish-252Fmanagers-252Ftest-5Fcertificate.robot-2523L413-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366014703-26sdata-3DM4kpR-252BYUSOhs8v-252Fw8I7aHeR3dvgohKJbLwRLAh9m6e4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DDTigoeO7w3j1CpoUIwH2PihZ8I38AS8oTkGWyIF5AHw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394441521&sdata=zI%2BcEu14NjLFa8KopWEvzPEoeHfHCNPfAMO%2BzL8mSjk%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/managers/test_certificate.robot#L413</span></a><span style="font-size:10.0pt"><br>
etc...</span><br>
<span style="font-size:10.0pt"><br>
or simply use something like this:<br>
SSHLibrary.Open connection ${bmc_ip}<br>
SSHLibrary.Login ${openbmc_username} ${openbmc_password}</span><br>
<span style="font-size:10.0pt"><br>
-login to Host and execute: Login To OS Host / OS Execute Command</span><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Fsyslib-252Futils-5Fos.robot-2523L38-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3DhHShdQPoOkLRCt7yKaI5gR0qPXuV-252FNBXJg4qcIwExPE-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DLIlbKvM1Gzo1YyOcNZ8vsI3H1CdIaQBJ3kwGuwLgTMw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394451513&sdata=4gdizdSbfISwXbfKYz3%2BcTINorm%2FfN6CkJibJ3gTJ%2B8%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/syslib/utils_os.robot#L38</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fbmc-5Fssh-5Futils.py-2523L70-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3D7ICm9BqdcdW38FuPfg6VbIqo5pmQaab44OsvsEmwokk-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DhTE-sYPLFrwviMxvP1Z5_WvyC0Rp6d7Ovw5NndvVHRU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394451513&sdata=17ddDV98FYjHmQ%2BD6pdscxHibdiOPsSvzqmvAPW5hAk%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L70</span></a><span style="font-size:10.0pt">
<br>
etc. </span><br>
<span style="font-size:10.0pt"><br>
- obmc-console-client: Start SOL Console Logging / Stop SOL Console Logging</span><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fcommon-5Futils.robot-2523L386-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366024696-26sdata-3DeI1kuljBHLWVQmXHzCTbX7GWLHeLCPzurllrjPUP6E4-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DrYhda1zcisBGnohu1y0Rge3tcb1XeSTgqgfquT0DoKk%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394461507&sdata=AVeGOSfiRrlwC%2Fz8M42xDXdQODT64IEXnXj3tumlVxQ%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L386</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fcommon-5Futils.robot-2523L342-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366034691-26sdata-3DYFLmdwiIpMj-252FxUEHez33Hl2ZF0d8dMZPer0W9CWmEjE-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3D0n141jmOPkWgXPU--JKBTYLKXk3Qr4MzEqgHJYOosuM%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394461507&sdata=Vi86IOZ6oNBv4%2F6%2FTVHwd%2FB7h1FSnwAGqw5c7NArzaw%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L342</span></a><br>
<span style="font-size:10.0pt"><br>
you can grep/serach around tests / redfish dir, you ll see where and how they are used in the test suite
</span><br>
<br>
<span style="font-size:10.0pt"><br>
The test boot keywords to power on /off/ reboot etc are here, </span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fboot-5Futils.robot-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366034691-26sdata-3DYcAA-252BPQUs7DsjSrpaQBhJVKz07LfVQyoDp3ml2Nx58A-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DJ_QG0q5N10QjlZUn0V-t3kFRbbjvieJ_HTz02CpZ-XE%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394471502&sdata=%2FIp4kE8I6Jo%2BgIeu7FEY9yicUuoWrTfs4nmJF6HPOHs%3D&reserved=0">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot</a>
<span style="font-size:10.0pt"><br>
you'll notice those are used in test to drive the boot and the best part is if you key in these test parameter from robot command line
</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fresource.robot-2523L45-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3DkILoPxnQZpSGSdGrS339EOWMO8dnZYkw-252B9VWWlF9Kuk-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DLtEVnjwavcFDlYG0Ugi8nOY14LcslLcN5wi7vtHBLTg%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394471502&sdata=fE%2BujMo6UBDehK8ursz4PBvRQzMHk23sPd0eotbu3rM%3D&reserved=0">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/resource.robot#L45</a>
<br>
<br>
it will ensure, to login and check if the Host is up and running as part of the boot keyword<br>
<br>
<br>
<b><span style="font-size:10.0pt"><br>
2. HOST LOGGER - To handle and store host's console output data, such as boot logs.</span></b><br>
<span style="font-size:10.0pt"><br>
You can use the above SOL keyword to collect the data for Host boot logs <br>
You can as well use IPMI SOL capabilities </span><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fipmi-5Fclient.robot-2523L188-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3D2H7q16WAl5rlqSqS4gkabyYtf90hMhIsEyGLdT9gdv0-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DGJhP6S-gIJd9T9OHhE8fMM6j6J340VlcWp05LtHXfjI%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394481496&sdata=RH0R7p7tFgMpDFS8AwgCiCRcRotSWKdacX%2Fx9sDHhv0%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L188</span></a><u><span style="color:blue"><br>
</span></u><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fipmi-5Fclient.robot-2523L204-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366044688-26sdata-3DRAX2hmIi-252BHWID3fTK-252BCcFIl0vDwx0yH2cUwbPsxWYnQ-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DTK78WcQiHiF5YkhqWSxPEclPBa2Iz1GWLoF2QrUUuMU%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394481496&sdata=mTRbf%2FAGJ4ZSNNYRYdBDtLKtKg6uLN9AmeUBEL5lG4Y%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L204</span></a><br>
<span style="font-size:10.0pt"><br>
FFDC collects those data as well : </span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fopenbmc-2Dtest-2Dautomation-252Fblob-252Fmaster-252Flib-252Fopenbmc-5Fffdc.robot-2523L39-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366054681-26sdata-3DjexRdnu8b-252B6YRSv-252B-252FmHOTw9V6CrD4pcRpQ7TWw-252FjoBw-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3D5DQFiL49PYJAZ42WtjqFd8QwBcPpmybHjYp_-q5WIfw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394491492&sdata=q4wwoWY8DYKaNxi%2BlZkgqEzMxQfln6aocTPnwdyELwg%3D&reserved=0"><span style="font-size:10.0pt">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/openbmc_ffdc.robot#L39</span></a><br>
<br>
<br>
<br>
<br>
<b><span style="font-size:10.0pt;color:blue"><br>
Thanks and Regards,</span></b><span style="font-size:10.0pt;color:blue"><br>
George Keishing</span><br>
<br>
<br>
<br>
<img border="0" width="16" height="16" style="width:.1666in;height:.1666in" id="_x0000_i1027" src="cid:image001.gif@01D6709B.B8267C20" alt="Inactive hide details for Jayashree D ---06-08-2020 04:08:09 PM---Hi All, I need to test the below features in openbmc-test-aut"><span style="font-size:10.0pt;color:#424282">Jayashree
 D ---06-08-2020 04:08:09 PM---Hi All, I need to test the below features in openbmc-test-automation.</span><br>
<span style="font-size:10.0pt;color:#5F5F5F"><br>
From: </span><span style="font-size:10.0pt">Jayashree D <</span><a href="mailto:jayashree-d@hcl.com"><span style="font-size:10.0pt">jayashree-d@hcl.com</span></a><span style="font-size:10.0pt">><span style="color:#5F5F5F"><br>
To: </span>"</span><a href="mailto:openbmc@lists.ozlabs.org"><span style="font-size:10.0pt">openbmc@lists.ozlabs.org</span></a><span style="font-size:10.0pt">" <</span><a href="mailto:openbmc@lists.ozlabs.org"><span style="font-size:10.0pt">openbmc@lists.ozlabs.org</span></a><span style="font-size:10.0pt">><span style="color:#5F5F5F"><br>
Date: </span>06-08-2020 04:08 PM<span style="color:#5F5F5F"><br>
Subject: </span>[EXTERNAL] Host related testcases in openbmc-test-automation<span style="color:#5F5F5F"><br>
Sent by: </span>"openbmc" <</span><a href="mailto:openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org"><span style="font-size:10.0pt">openbmc-bounces+gkeishin=in.ibm.com@lists.ozlabs.org</span></a><span style="font-size:10.0pt">></span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" noshade="" style="color:#A0A0A0" align="left">
</div>
<p class="MsoNormal"><br>
<br>
<br>
<span style="font-family:"Calibri",sans-serif"><br>
Hi All,</span><br>
<span style="font-family:"Calibri",sans-serif"><br>
I need to test the below features in openbmc-test-automation.<br>
Is there any related testcases to verify those features?</span><br>
<span style="font-family:"Calibri",sans-serif"><br>
1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.<br>
(</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fobmc-2Dconsole-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366054681-26sdata-3D8yio-252FtiZMhyCj-252BFGZUwh5A61JderIRlD-252BUsrxqGk-252B0M-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DZq536ekke-efN3lPhpKpMGbdLPe4LdhBAQeh_m0MC6I%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394491492&sdata=VO5x15etxUHSsT7YQqi5vvHgYI8GqJN6TW4dMgl4IRU%3D&reserved=0"><span style="font-family:"Calibri",sans-serif;color:#0563C1">https://github.com/openbmc/obmc-console</span></a><span style="font-family:"Calibri",sans-serif">)</span><br>
<span style="font-family:"Calibri",sans-serif"><br>
2. HOST LOGGER - To handle and store host's console output data, such as boot logs.<br>
(</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Furldefense.proofpoint.com%2Fv2%2Furl%3Fu%3Dhttps-3A__apc01.safelinks.protection.outlook.com_-3Furl-3Dhttps-253A-252F-252Fgithub.com-252Fopenbmc-252Fphosphor-2Dhostlogger-26data-3D02-257C01-257Cjayashree-2Dd-2540hcl.com-257C8553afa8ad3d4c09cdf808d83a062596-257C189de737c93a4f5a8b686f4ca9941912-257C0-257C0-257C637323145366064674-26sdata-3D2-252FWbQyTInkJrEHUXJD4Qh-252BkYDjWPturq0mjKTOfs06s-253D-26reserved-3D0%26d%3DDwMGaQ%26c%3Djf_iaSHvJObTbx-siA1ZOg%26r%3DhHlxml_LX5HIffRsSFs-k3DrxQDKe6i0A3XGNW7rlIw%26m%3DYcoChPUQFfWImdbl3uyPXF-qoErHN5aF013OCxTDZ_A%26s%3DoJs2MyMqZHRpHsWyL_3UO6XowycjwB1mp7ddewRZ7Rw%26e%3D&data=02%7C01%7Cjayashree-d%40hcl.com%7C2a61d5135f5d42049d5108d83d4cceb1%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637326747394501487&sdata=oNf4Oze%2FYsl4KUapKsNh7EvembLldsRNAYZseUjEbPQ%3D&reserved=0"><span style="font-family:"Calibri",sans-serif;color:#0563C1">https://github.com/openbmc/phosphor-hostlogger</span></a><span style="font-family:"Calibri",sans-serif">)</span><br>
<br>
<span style="font-family:"Calibri",sans-serif"><br>
Regards,<br>
Jayashree</span> <o:p></o:p></p>
<p><span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">::DISCLAIMER::</span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" align="left">
</div>
<p class="MsoNormal"><br>
<span style="font-size:7.5pt;font-family:"Arial",sans-serif;color:gray">The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only. E-mail transmission is not guaranteed to be secure or error-free as information
 could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or may contain viruses in transmission. The e mail and its contents (with or without referred errors) shall therefore not attach any liability on the originator or HCL or its affiliates.
 Views or opinions, if any, presented in this email are solely those of the author and may not necessarily reflect the views or opinions of HCL or its affiliates. Any form of reproduction, dissemination, copying, disclosure, modification, distribution and /
 or publication of this message without the prior written consent of authorized representative of HCL is strictly prohibited. If you have received this email in error please delete it and notify the sender immediately. Before opening any email and/or attachments,
 please check them for viruses and other defects.</span><o:p></o:p></p>
<div class="MsoNormal">
<hr size="2" width="100%" align="left">
</div>
<p><o:p> </o:p></p>
</div>
</div>
</body>
</html>