<html><body><p><font size="2">Jayashree,</font><br><br><font size="2">        See if this info helps to get you started what you are looking for. </font><br><br><b><font size="2">1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.</font></b><br><br><font size="2">Most of the test code uses the login  BMC/host, check connect via REST/SSH/Ping to do the check on connection</font><br><br><font size="2">You can look at this keyword used:</font><br><font size="2">Example:</font><br><br><font size="2">  -login to BMC and execute :   BMC Execute Command</font><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L12"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L12</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L74"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L74</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L96"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/extended/test_basic_ci.robot#L96</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/managers/test_certificate.robot#L413"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/redfish/managers/test_certificate.robot#L413</font></a><br><font size="2">  etc...</font><br><font size="2">  </font><br><font size="2">  or simply use something like this:</font><br><font size="2">    SSHLibrary.Open connection  ${bmc_ip}</font><br><font size="2">    SSHLibrary.Login  ${openbmc_username}  ${openbmc_password}</font><br><font size="2">  </font><br><font size="2">  -login to Host and execute: Login To OS Host   /  OS Execute Command</font><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/syslib/utils_os.robot#L38"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/syslib/utils_os.robot#L38</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L70"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/bmc_ssh_utils.py#L70</font></a><font size="2">  </font><br><font size="2">  etc. </font><br><font size="2">  </font><br><font size="2">  - obmc-console-client: Start SOL Console Logging / Stop SOL Console Logging</font><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L386"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L386</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L342"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/common_utils.robot#L342</font></a><br><font size="2">  </font><br><font size="2">  you can grep/serach around tests / redfish dir, you ll see where and how they are used in the test suite  </font><br><br><br><font size="2">The test boot keywords to power on /off/ reboot etc are here, </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot"><u><font color="#0000FF">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/boot_utils.robot</font></u></a> <br><font size="2">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 </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/resource.robot#L45"><u><font color="#0000FF">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/resource.robot#L45</font></u></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><font size="2">   </font><br><br><b><font size="2">2. HOST LOGGER - To handle and store host's console output data, such as boot logs.</font></b><br><br><font size="2">  You can use the above SOL keyword to collect the data for Host boot logs </font><br><font size="2">  You can as well use IPMI SOL capabilities </font><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L188"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L188</font></a><br><font size="2">  </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L204"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/ipmi_client.robot#L204</font></a><br><br><font size="2">  FFDC collects those data as well : </font><a href="https://github.com/openbmc/openbmc-test-automation/blob/master/lib/openbmc_ffdc.robot#L39"><font size="2">https://github.com/openbmc/openbmc-test-automation/blob/master/lib/openbmc_ffdc.robot#L39</font></a><br><br><font size="2"> </font><br><br><br><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">   </font><br><br><br><img width="16" height="16" src="cid:1__=8FBB0F2FDFD6CF988f9e8a93df938690918c8FB@" border="0" 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"><font size="2" color="#424282">Jayashree D ---06-08-2020 04:08:09 PM---Hi All, I need to test the below features in openbmc-test-automation.</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Jayashree D <jayashree-d@hcl.com></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2">"openbmc@lists.ozlabs.org" <openbmc@lists.ozlabs.org></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">06-08-2020 04:08 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">[EXTERNAL] Host related testcases in openbmc-test-automation</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="Calibri">Hi All,</font><br><font face="Calibri"> </font><br><font face="Calibri">I need to test the below features in openbmc-test-automation.</font><br><font face="Calibri">Is there any related testcases to verify those features?</font><br><font face="Calibri"> </font><br><font face="Calibri">1. OBMC-CONSOLE - To connect the host via BMC, we are using obmc-console-client to login the host and check the host conections.</font><br><font face="Calibri">   (</font><a href="https://github.com/openbmc/obmc-console"><u><font color="#0563C1" face="Calibri">https://github.com/openbmc/obmc-console</font></u></a><font face="Calibri">)</font><br><font face="Calibri">   </font><br><font face="Calibri">2. HOST LOGGER - To handle and store host's console output data, such as boot logs.</font><br><font face="Calibri">   (</font><a href="https://github.com/openbmc/phosphor-hostlogger"><u><font color="#0563C1" face="Calibri">https://github.com/openbmc/phosphor-hostlogger</font></u></a><font face="Calibri">)</font><br><font face="Calibri"> </font><br><font face="Calibri"> </font><br><font face="Calibri">Regards,</font><br><font face="Calibri">Jayashree</font><br><font face="Calibri"> </font><p><font size="1" color="#808080" face="Arial">::DISCLAIMER::<br></font><hr width="100%" size="2" align="left"><font size="1" color="#808080" face="Arial">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.<br></font><hr width="100%" size="2" align="left"><p><p><BR>
</body></html>