<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, I will look into this keywords.<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> Thursday, August 6, 2020 6:12 PM<br>
<b>To:</b> Jayashree D <jayashree-d@hcl.com><br>
<b>Cc:</b> openbmc@lists.ozlabs.org<br>
<b>Subject:</b> 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">Jayashree,</span><br>
<br>
<span style="font-size:10.0pt">See if this info helps to get you started what you are looking for.
</span><br>
<br>
<b><span style="font-size:10.0pt">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>
<br>
<span style="font-size:10.0pt">Most of the test code uses the login BMC/host, check connect via REST/SSH/Ping to do the check on connection</span><br>
<br>
<span style="font-size:10.0pt">You can look at this keyword used:</span><br>
<span style="font-size:10.0pt">Example:</span><br>
<br>
<span style="font-size:10.0pt">-login to BMC and execute : BMC Execute Command</span><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fbmc_ssh_utils.py%23L12&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366004707&sdata=FWn1U2v3YL44mE4%2B%2FLQJ58%2BqBSn57YA9qD%2FuZku2Ju4%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Fredfish%2Fextended%2Ftest_basic_ci.robot%23L74&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366004707&sdata=IQhFENJiIkzsS3lEitdpBX6eBInNIUCMd9sO408AF8c%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Fredfish%2Fextended%2Ftest_basic_ci.robot%23L96&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366014703&sdata=ysP5zMeVa7UODKItQ30fDFFu9hjqh8a7WDxjuCc%2Fu1I%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Fredfish%2Fmanagers%2Ftest_certificate.robot%23L413&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366014703&sdata=M4kpR%2BYUSOhs8v%2Fw8I7aHeR3dvgohKJbLwRLAh9m6e4%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><br>
<span style="font-size:10.0pt">etc...</span><br>
<br>
<span style="font-size:10.0pt">or simply use something like this:</span><br>
<span style="font-size:10.0pt">SSHLibrary.Open connection ${bmc_ip}</span><br>
<span style="font-size:10.0pt">SSHLibrary.Login ${openbmc_username} ${openbmc_password}</span><br>
<br>
<span style="font-size:10.0pt">-login to Host and execute: Login To OS Host / OS Execute Command</span><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Fsyslib%2Futils_os.robot%23L38&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366024696&sdata=hHShdQPoOkLRCt7yKaI5gR0qPXuV%2FNBXJg4qcIwExPE%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fbmc_ssh_utils.py%23L70&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366024696&sdata=7ICm9BqdcdW38FuPfg6VbIqo5pmQaab44OsvsEmwokk%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">
</span><br>
<span style="font-size:10.0pt">etc. </span><br>
<br>
<span style="font-size:10.0pt">- obmc-console-client: Start SOL Console Logging / Stop SOL Console Logging</span><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fcommon_utils.robot%23L386&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366024696&sdata=eI1kuljBHLWVQmXHzCTbX7GWLHeLCPzurllrjPUP6E4%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fcommon_utils.robot%23L342&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366034691&sdata=YFLmdwiIpMj%2FxUEHez33Hl2ZF0d8dMZPer0W9CWmEjE%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>
<br>
<span style="font-size:10.0pt">you can grep/serach around tests / redfish dir, you ll see where and how they are used in the test suite
</span><br>
<br>
<br>
<span style="font-size:10.0pt">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%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fboot_utils.robot&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366034691&sdata=YcAA%2BPQUs7DsjSrpaQBhJVKz07LfVQyoDp3ml2Nx58A%3D&reserved=0">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot</a>
<br>
<span style="font-size:10.0pt">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%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fresource.robot%23L45&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366044688&sdata=kILoPxnQZpSGSdGrS339EOWMO8dnZYkw%2B9VWWlF9Kuk%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>
<br>
<b><span style="font-size:10.0pt">2. HOST LOGGER - To handle and store host's console output data, such as boot logs.</span></b><br>
<br>
<span style="font-size:10.0pt">You can use the above SOL keyword to collect the data for Host boot logs
</span><br>
<span style="font-size:10.0pt">You can as well use IPMI SOL capabilities </span><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fipmi_client.robot%23L188&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366044688&sdata=2H7q16WAl5rlqSqS4gkabyYtf90hMhIsEyGLdT9gdv0%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><br>
<a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fipmi_client.robot%23L204&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366044688&sdata=RAX2hmIi%2BHWID3fTK%2BCcFIl0vDwx0yH2cUwbPsxWYnQ%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>
<br>
<span style="font-size:10.0pt">FFDC collects those data as well : </span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fopenbmc-test-automation%2Fblob%2Fmaster%2Flib%2Fopenbmc_ffdc.robot%23L39&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366054681&sdata=jexRdnu8b%2B6YRSv%2B%2FmHOTw9V6CrD4pcRpQ7TWw%2FjoBw%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>
<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@01D66C2E.972C5A10" 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>
<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">"<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">06-08-2020 04:08 PM</span><br>
<span style="font-size:10.0pt;color:#5F5F5F">Subject: </span><span style="font-size:10.0pt">[EXTERNAL] 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">Hi All,</span><br>
<br>
<span style="font-family:"Calibri",sans-serif">I need to test the below features in openbmc-test-automation.</span><br>
<span style="font-family:"Calibri",sans-serif">Is there any related testcases to verify those features?</span><br>
<br>
<span style="font-family:"Calibri",sans-serif">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><br>
<span style="font-family:"Calibri",sans-serif">(</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fobmc-console&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366054681&sdata=8yio%2FtiZMhyCj%2BFGZUwh5A61JderIRlD%2BUsrxqGk%2B0M%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>
<br>
<span style="font-family:"Calibri",sans-serif">2. HOST LOGGER - To handle and store host's console output data, such as boot logs.</span><br>
<span style="font-family:"Calibri",sans-serif">(</span><a href="https://apc01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fopenbmc%2Fphosphor-hostlogger&data=02%7C01%7Cjayashree-d%40hcl.com%7C8553afa8ad3d4c09cdf808d83a062596%7C189de737c93a4f5a8b686f4ca9941912%7C0%7C0%7C637323145366064674&sdata=2%2FWbQyTInkJrEHUXJD4Qh%2BkYDjWPturq0mjKTOfs06s%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>
<br>
<span style="font-family:"Calibri",sans-serif">Regards,</span><br>
<span style="font-family:"Calibri",sans-serif">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"><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>