FFDC logs name chgs, OS FFDC: cpuinfo, netstat, meminfo, FFDC OS checks
Changes to journalctl.log and ffdc_report.txt to reflect the names of
the other logs (BMC_xxxx).
BMC_meminfo and BMC_procinfo to be there own files instead of in
ffdc_report.txt/BMC_general.
Added OS_meminfo, OS_procinfo, netstat
Added check on OS FFDC for ping and able to ssh, if either of
these fail we bail.
Change-Id: I74dbccf1f23f11d39c731b41a39e406606c6c7ce
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index ac866e6..9f78ae2 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -4,7 +4,7 @@
Resource openbmc_ffdc_utils.robot
Resource rest_client.robot
-
+Resource utils.robot
*** Keywords ***
@@ -190,12 +190,27 @@
OS FFDC Files
[Documentation] Get the command list and iterate
+ [Arguments] ${OS_HOST}=${OS_HOST} ${OS_USERNAME}=${OS_USERNAME}
+ ... ${OS_PASSWORD}=${OS_PASSWORD}
Return From Keyword If '${OS_HOST}' == '${EMPTY}'
... No OS Host Provided
+
+ # If can't ping, return
+ ${rc}= Run Keyword and Return Status Ping Host ${OS_HOST}
+ Return From Keyword If '${rc}' == '${False}'
+ ... Could not ping OS
+
Open Connection And Log In host=${OS_HOST} username=${OS_USERNAME}
... password=${OS_PASSWORD}
+ ${output} ${stderr} ${rc}= Execute Command uptime return_stderr=True
+ ... return_rc=True
+
+ # If the return code returned by "Execute Command" is non-zero, return
+ Return From Keyword If '${rc}' != '${0}'
+ ... Could not connect to OS
+
@{entries}= Get ffdc os all distros index
:FOR ${index} IN @{entries}
\ Log OS ALL DISTROS FFDC ${index}