Add support for SUSE Linux in FFDC YAML
Changes:
- Added SLES entry block for log collection
- Update RHEL log entries ( tested )
Change-Id: Ie797db80e61036c9732ce432f75442be69824699
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/collect_ffdc.py b/ffdc/collect_ffdc.py
index 1153739..a4f2739 100644
--- a/ffdc/collect_ffdc.py
+++ b/ffdc/collect_ffdc.py
@@ -33,7 +33,7 @@
@click.option('-l', '--location', default="/tmp",
show_default=True, help="Location to store collected FFDC data")
@click.option('-t', '--remote_type',
- help="OS type of the remote (targeting) host. OPENBMC, RHEL, UBUNTU, AIX")
+ help="OS type of the remote (targeting) host. OPENBMC, RHEL, UBUNTU, SLES, AIX")
@click.option('-rp', '--remote_protocol', default="ALL",
show_default=True,
help="Select protocol (SSH, SCP, REDFISH) to communicate with remote host. \
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index 80ee559..3e8a5f0 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -197,17 +197,13 @@
RHEL:
RHEL_LOGS:
COMMANDS:
- - '/usr/bin/ctversion -bv >/tmp/OS_rsct.txt 2>&1'
- - 'cat /var/log/secure >/tmp/OS_secure.txt 2>&1'
+ - '{ cat /etc/os-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1'
- 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1'
- - '{ lsb_release -a; cat /etc/redhat-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1'
- 'rm -rf /tmp/sosreport*FFDC*'
- 'sosreport --batch --tmp-dir /tmp --label FFDC >/tmp/OS_sosreport.txt 2>&1'
FILES:
- - '/tmp/OS_rsct.txt'
- - '/tmp/OS_secure.txt'
- - '/tmp/OS_syslog.txt'
- '/tmp/OS_info.txt'
+ - '/tmp/OS_syslog.txt'
- '/tmp/OS_sosreport.txt'
PROTOCOL:
- 'SSH'
@@ -221,6 +217,31 @@
PROTOCOL:
- 'SSH'
+# Commands and Files to collect for SLES Linux only
+SLES:
+ SLES_LOGS:
+ COMMANDS:
+ - '{ cat /etc/os-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1'
+ - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1'
+ - 'rm -rf /tmp/scc*.txz.md5'
+ - 'supportconfig >/tmp/OS_supportconfig.txt 2>&1'
+ - 'cp /var/log/scc*.txz.md5 /tmp/'
+ FILES:
+ - '/tmp/OS_info.txt'
+ - '/tmp/OS_syslog.txt'
+ - '/tmp/OS_supportconfig.txt'
+ PROTOCOL:
+ - 'SSH'
+
+ # Commands and Files to collect dumps
+ DUMP_LOGS:
+ COMMANDS:
+ - 'ls -AX /tmp/scc*.txz.md5'
+ FILES:
+ - '/tmp/scc*.txz.md5'
+ PROTOCOL:
+ - 'SSH'
+
# Commands and Files to collect for AIX only
AIX:
AIX_LOGS: