Add PEL files collection from BMC
Change-Id: If8cfdf213a3b34dceaa29d134e5b5035064c2acc
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index d7e188b..7b96b35 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -147,6 +147,7 @@
'Sys Inventory Files': 'System Inventory Files',
'Dump Log': 'Collect Dump Log',
'Dump Files': 'SCP Dump Files',
+ 'PEL Files': 'Collect PEL Log',
'Redfish Log': 'Enumerate Redfish Resources',
},
}
diff --git a/lib/openbmc_ffdc_methods.robot b/lib/openbmc_ffdc_methods.robot
index 84b0c32..6abbacd 100755
--- a/lib/openbmc_ffdc_methods.robot
+++ b/lib/openbmc_ffdc_methods.robot
@@ -509,6 +509,14 @@
${dump_list}= Get Dictionary Keys ${data}
+Collect PEL Log
+ [Documentation] Collect PEL files from from BMC.
+
+ Create Directory ${FFDC_DIR_PATH}${/}pel_files/
+ scp.Get File /var/lib/phosphor-logging/extensions/pels/logs/
+ ... ${FFDC_DIR_PATH}${/}pel_files recursive=True
+
+
Enumerate Redfish Resources
[Documentation] Enumerate /redfish/v1 resources and properties to
... a file. Return a list which contains the file name.