1---
2# This yaml formatted file contains defaults items to collect FFDC for the targeted system
3# COMMANDS - List of commands to be run on the corresponding targeted system (inband)
4#            to generate and/or collect data
5# FILES    - List of files; with complete path; on the corresponding targeted system
6#            to be copied to external destination
7# PROTOCOL - Protocol used to communicate with targeted system; ssh, Rest, redfish, etc
8#
9# Note: Items in COMMANDS and FILES are not necessarily one-to-one correspondence.
10#       For example, a file could have been created by an internal process,
11#       and is listed in FILES to be collected.
12
13# Commands and Files to collect for a given OpenBMC system.
14OPENBMC:
15    COMMANDS:
16        - 'cat /sys/class/watchdog/watchdog1/bootstatus >/tmp/BMC_flash_side.txt 2>&1'
17        - 'grep -r . /sys/class/hwmon/* >/tmp/BMC_hwmon.txt 2>&1'
18        - 'top -n 1 -b >/tmp/BMC_proc_list.txt 2>&1'
19        - 'ls -Al /proc/*/fd/ >/tmp/BMC_proc_fd_active_list.txt 2>&1'
20        - 'journalctl --no-pager >/tmp/BMC_journalctl_nopager.txt 2>&1'
21        - 'journalctl -o json-pretty >/tmp/BMC_journalctl_pretty.json 2>&1'
22        - 'dmesg >/tmp/BMC_dmesg.txt 2>&1'
23        - 'cat /proc/cpuinfo >/tmp/BMC_procinfo.txt 2>&1'
24        - 'cat /proc/meminfo >/tmp/BMC_meminfo.txt 2>&1'
25        - 'systemctl status --all >/tmp/BMC_systemd.txt 2>&1'
26        - 'systemctl list-units --failed >/tmp/BMC_failed_service.txt 2>&1'
27        - 'systemctl list-jobs >/tmp/BMC_list_service.txt 2>&1'
28        - 'cat /var/log/obmc-console.log >/tmp/BMC_obmc_console.txt 2>&1'
29        - 'cat /var/log/obmc-console1.log >/tmp/BMC_obmc_console1.txt 2>&1'
30        - 'peltool -l >/tmp/PEL_logs_list.json 2>&1'
31        - 'peltool -a >/tmp/PEL_logs_display.json 2>&1'
32    FILES:
33        - '/tmp/BMC_flash_side.txt'
34        - '/tmp/BMC_hwmon.txt'
35        - '/tmp/BMC_proc_list.txt'
36        - '/tmp/BMC_proc_fd_active_list.txt'
37        - '/tmp/BMC_journalctl_nopager.txt'
38        - '/tmp/BMC_journalctl_pretty.json'
39        - '/tmp/BMC_dmesg.txt'
40        - '/tmp/BMC_procinfo.txt'
41        - '/tmp/BMC_meminfo.txt'
42        - '/tmp/BMC_systemd.txt'
43        - '/tmp/BMC_failed_service.txt'
44        - '/tmp/BMC_list_service.txt'
45        - '/tmp/BMC_obmc_console.txt'
46        - '/tmp/BMC_obmc_console1.txt'
47        - '/tmp/PEL_logs_list.json'
48        - '/tmp/PEL_logs_display.json'
49    PROTOCOL:
50        - 'SSH'
51
52# Commands and Files to collect for all Linux distributions
53LINUX:
54    COMMANDS:
55        - 'cat /sys/firmware/opal/msglog >/tmp/OS_msglog.txt 2>&1'
56        - 'ppc64_cpu --frequency >/tmp/OS_cpufrequency.txt 2>&1'
57        - 'dmesg >/tmp/OS_dmesg.txt 2>&1'
58        - 'cat /var/log/opal-prd* >/tmp/OS_opal_prd.txt 2>&1'
59        - 'cat /var/log/boot.log >/tmp/OS_boot.txt 2>&1'
60        - 'cat /proc/cpuinfo >/tmp/OS_procinfo.txt 2>&1'
61        - 'cat /proc/meminfo >/tmp/OS_meminfo.txt 2>&1'
62        - 'netstat -a >/tmp/OS_netstat.txt 2>&1'
63        - 'lspci >/tmp/OS_lspci.txt 2>&1'
64        - 'lscpu >/tmp/OS_lscpu.txt 2>&1'
65        - 'lscfg >/tmp/OS_lscfg.txt 2>&1'
66        - 'journalctl --no-pager -b > /tmp/OS_journalctl_nopager.txt  2>&1'
67    FILES:
68        - '/tmp/OS_msglog.txt'
69        - '/tmp/OS_cpufrequency.txt'
70        - '/tmp/OS_dmesg.txt'
71        - '/tmp/OS_opal_prd.txt'
72        - '/tmp/OS_boot.txt'
73        - '/tmp/OS_procinfo.txt'
74        - '/tmp/OS_meminfo.txt'
75        - '/tmp/OS_netstat.txt'
76        - '/tmp/OS_lspci.txt'
77        - '/tmp/OS_lscpu.txt'
78        - '/tmp/OS_lscfg.txt'
79        - '/tmp/OS_journalctl_nopager.txt'
80    PROTOCOL:
81        - 'SSH'
82
83# Commands and Files to collect for Ubuntu Linux only
84UBUNTU_LINUX:
85    COMMANDS:
86        - '{ lsusb -t ; lsusb -v ; } >/tmp/OS_isub.txt 2>&1'
87        - 'tail -n 50000 /var/log/kern.log >/tmp/OS_kern.txt 2>&1'
88        - '{ cat /var/log/auth.log; cat /var/log/auth.log.1 ; } >/tmp/OS_authlog.txt 2>&1'
89        - 'tail -n 200000 /var/log/syslog >/tmp/OS_syslog.txt 2>&1'
90        - '{ uname -a; dpkg -s opal-prd; dpkg -s ipmitool ; } >/tmp/OS_info.txt 2>&1'
91        - 'rm -rf /tmp/sosreport*FFDC*'
92        - 'sosreport --batch --tmp-dir /tmp --ticket-number FFDC >/tmp/OS_sosreport.txt 2>&1'
93    FILES:
94        - '/tmp/OS_isub.txt'
95        - '/tmp/OS_kern.txt'
96        - '/tmp/OS_authlog.txt'
97        - '/tmp/OS_syslog.txt'
98        - '/tmp/OS_info.txt'
99        - '/tmp/OS_sosreport.txt'
100    PROTOCOL:
101        - 'SSH'
102
103# Commands and Files to collect for RHE Linux only
104RHEL_LINUX:
105    COMMANDS:
106        - '/usr/bin/ctversion -bv >/tmp/OS_rsct.txt 2>&1'
107        - 'cat /var/log/secure >/tmp/OS_secure.txt 2>&1'
108        - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1'
109        - '{ lsb_release -a; cat /etc/redhat-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1'
110        - 'rm -rf /tmp/sosreport*FFDC*'
111        - 'sosreport --batch --tmp-dir /tmp --label FFDC >/tmp/OS_sosreport.txt 2>&1'
112    FILES:
113        - '/tmp/OS_rsct.txt'
114        - '/tmp/OS_secure.txt'
115        - '/tmp/OS_syslog.txt'
116        - '/tmp/OS_info.txt'
117        - '/tmp/OS_sosreport.txt'
118    PROTOCOL:
119        - 'SSH'
120