blob: a18fe052c80a660ad3a41c87473a1aad1bcb7ccc [file] [log] [blame]
Peter D Phan72ce6b82021-06-03 06:18:26 -05001---
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.
Peter D Phan04aca3b2021-06-21 10:37:18 -050012#
13# Note: When a new remote type is added to this configuration file,
Peter D Phan2b8052d2021-06-22 10:55:41 -050014# it is also need to be added the list of supported OSes in ffdc_collector.py
15
16# Commands and File to take snapshot of linux based system.
17# Filename is <OS>_general.txt, where <OS> is in [OPENBMC, RHEL, UBUNTU]
18GENERAL:
19 COMMANDS:
20 - 'rm -rf /tmp/%s_general.txt'
21 - 'echo "++++++++++ cat /etc/os-release ++++++++++" >> /tmp/%s_general.txt 2>&1'
22 - 'cat /etc/os-release >> /tmp/%s_general.txt 2>&1'
23 - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/%s_general.txt 2>&1'
24 - 'cat /etc/timestamp >> /tmp/%s_general.txt 2>&1'
25 - 'echo -e "\n++++++++++ uname -a ++++++++++" >> /tmp/%s_general.txt 2>&1'
26 - 'uname -a >> /tmp/%s_general.txt'
27 - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/%s_general.txt 2>&1'
28 - 'cat /etc/timestamp >> /tmp/%s_general.txt 2>&1'
29 - 'echo -e "\n++++++++++ uptime;cat /proc/uptime ++++++++++" >> /tmp/%s_general.txt 2>&1'
30 - 'uptime;cat /proc/uptime >> /tmp/%s_general.txt 2>&1'
31 - 'echo -e "\n++++++++++ df -hT ++++++++++" >> /tmp/%s_general.txt 2>&1'
32 - 'df -hT >> /tmp/%s_general.txt 2>&1'
33 - 'echo -e "\n++++++++++ date;/sbin/hwclock --show ++++++++++" >> /tmp/%s_general.txt 2>&1'
34 - 'date;/sbin/hwclock --show;/usr/bin/timedatectl >> /tmp/%s_general.txt 2>&1'
35 - 'echo -e "\n++++++++++ /usr/bin/obmcutil state ++++++++++" >> /tmp/%s_general.txt 2>&1'
36 - '/usr/bin/obmcutil state >> /tmp/%s_general.txt 2>&1'
37 FILES:
38 - '/tmp/%s_general.txt'
39 PROTOCOL:
40 - 'SSH'
Peter D Phan72ce6b82021-06-03 06:18:26 -050041
42# Commands and Files to collect for a given OpenBMC system.
43OPENBMC:
44 COMMANDS:
45 - 'cat /sys/class/watchdog/watchdog1/bootstatus >/tmp/BMC_flash_side.txt 2>&1'
46 - 'grep -r . /sys/class/hwmon/* >/tmp/BMC_hwmon.txt 2>&1'
47 - 'top -n 1 -b >/tmp/BMC_proc_list.txt 2>&1'
48 - 'ls -Al /proc/*/fd/ >/tmp/BMC_proc_fd_active_list.txt 2>&1'
49 - 'journalctl --no-pager >/tmp/BMC_journalctl_nopager.txt 2>&1'
50 - 'journalctl -o json-pretty >/tmp/BMC_journalctl_pretty.json 2>&1'
51 - 'dmesg >/tmp/BMC_dmesg.txt 2>&1'
52 - 'cat /proc/cpuinfo >/tmp/BMC_procinfo.txt 2>&1'
53 - 'cat /proc/meminfo >/tmp/BMC_meminfo.txt 2>&1'
54 - 'systemctl status --all >/tmp/BMC_systemd.txt 2>&1'
55 - 'systemctl list-units --failed >/tmp/BMC_failed_service.txt 2>&1'
56 - 'systemctl list-jobs >/tmp/BMC_list_service.txt 2>&1'
57 - 'cat /var/log/obmc-console.log >/tmp/BMC_obmc_console.txt 2>&1'
58 - 'cat /var/log/obmc-console1.log >/tmp/BMC_obmc_console1.txt 2>&1'
59 - 'peltool -l >/tmp/PEL_logs_list.json 2>&1'
60 - 'peltool -a >/tmp/PEL_logs_display.json 2>&1'
61 FILES:
62 - '/tmp/BMC_flash_side.txt'
63 - '/tmp/BMC_hwmon.txt'
64 - '/tmp/BMC_proc_list.txt'
65 - '/tmp/BMC_proc_fd_active_list.txt'
66 - '/tmp/BMC_journalctl_nopager.txt'
67 - '/tmp/BMC_journalctl_pretty.json'
68 - '/tmp/BMC_dmesg.txt'
69 - '/tmp/BMC_procinfo.txt'
70 - '/tmp/BMC_meminfo.txt'
71 - '/tmp/BMC_systemd.txt'
72 - '/tmp/BMC_failed_service.txt'
73 - '/tmp/BMC_list_service.txt'
74 - '/tmp/BMC_obmc_console.txt'
75 - '/tmp/BMC_obmc_console1.txt'
76 - '/tmp/PEL_logs_list.json'
77 - '/tmp/PEL_logs_display.json'
78 PROTOCOL:
79 - 'SSH'
80
Peter D Phan56429a62021-06-23 08:38:29 -050081# Commands and Files to collect OPENBMC dumps
82OPENBMC_DUMPS:
83 COMMANDS:
84 - 'ls -AX /tmp/core_*'
85 - 'ls -AX /var/lib/phosphor-debug-collector/dumps/*/*.tar.xz'
86 - 'ls -AX /var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz'
87 FILES:
88 - '/tmp/core_*'
89 - '/var/lib/phosphor-debug-collector/dumps/*/*.tar.xz'
90 - '/var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz'
91 PROTOCOL:
92 - 'SSH'
93
Peter D Phan0c669772021-06-24 13:52:42 -050094# URLs and Files for OPENBMC redfish
95# URLs and Files are one-to-one corresponding.
96# File contains the data returned from 'redfishtool GET URL'
97OPENBMC_REDFISH:
98 URL:
99 - '/xyz/openbmc_project/software/enumerate'
Peter D Phan7e5df7d2021-06-29 08:54:30 -0500100 - '/xyz/openbmc_project/state/enumerate'
101 - '/org/open_power/enumerate'
102 - '/redfish/v1/AccountService/Accounts'
103 - '/redfish/v1/Managers/bmc/LogServices/Dump/Entries'
104 - '/redfish/v1/Systems/system/LogServices/Dump/Entries'
105 - '/redfish/v1/Systems/system/LogServices/EventLog/Entries'
Peter D Phan0c669772021-06-24 13:52:42 -0500106 FILES:
107 - 'software.json'
Peter D Phan7e5df7d2021-06-29 08:54:30 -0500108 - 'bmc_state.json'
109 - 'openpower_control_occ_state.json'
110 - 'bmc_user_accounts.json'
111 - 'bmc_dump_entries.json'
112 - 'system_dumps_entries.json'
113 - 'event_log_entries.json'
Peter D Phan0c669772021-06-24 13:52:42 -0500114 PROTOCOL:
115 - 'REDFISH'
116
Peter D Phan72ce6b82021-06-03 06:18:26 -0500117# Commands and Files to collect for all Linux distributions
118LINUX:
119 COMMANDS:
120 - 'cat /sys/firmware/opal/msglog >/tmp/OS_msglog.txt 2>&1'
121 - 'ppc64_cpu --frequency >/tmp/OS_cpufrequency.txt 2>&1'
122 - 'dmesg >/tmp/OS_dmesg.txt 2>&1'
123 - 'cat /var/log/opal-prd* >/tmp/OS_opal_prd.txt 2>&1'
124 - 'cat /var/log/boot.log >/tmp/OS_boot.txt 2>&1'
125 - 'cat /proc/cpuinfo >/tmp/OS_procinfo.txt 2>&1'
126 - 'cat /proc/meminfo >/tmp/OS_meminfo.txt 2>&1'
127 - 'netstat -a >/tmp/OS_netstat.txt 2>&1'
128 - 'lspci >/tmp/OS_lspci.txt 2>&1'
129 - 'lscpu >/tmp/OS_lscpu.txt 2>&1'
130 - 'lscfg >/tmp/OS_lscfg.txt 2>&1'
131 - 'journalctl --no-pager -b > /tmp/OS_journalctl_nopager.txt 2>&1'
132 FILES:
133 - '/tmp/OS_msglog.txt'
134 - '/tmp/OS_cpufrequency.txt'
135 - '/tmp/OS_dmesg.txt'
136 - '/tmp/OS_opal_prd.txt'
137 - '/tmp/OS_boot.txt'
138 - '/tmp/OS_procinfo.txt'
139 - '/tmp/OS_meminfo.txt'
140 - '/tmp/OS_netstat.txt'
141 - '/tmp/OS_lspci.txt'
142 - '/tmp/OS_lscpu.txt'
143 - '/tmp/OS_lscfg.txt'
144 - '/tmp/OS_journalctl_nopager.txt'
145 PROTOCOL:
146 - 'SSH'
147
148# Commands and Files to collect for Ubuntu Linux only
Peter D Phan04aca3b2021-06-21 10:37:18 -0500149UBUNTU:
Peter D Phan72ce6b82021-06-03 06:18:26 -0500150 COMMANDS:
151 - '{ lsusb -t ; lsusb -v ; } >/tmp/OS_isub.txt 2>&1'
152 - 'tail -n 50000 /var/log/kern.log >/tmp/OS_kern.txt 2>&1'
153 - '{ cat /var/log/auth.log; cat /var/log/auth.log.1 ; } >/tmp/OS_authlog.txt 2>&1'
154 - 'tail -n 200000 /var/log/syslog >/tmp/OS_syslog.txt 2>&1'
155 - '{ uname -a; dpkg -s opal-prd; dpkg -s ipmitool ; } >/tmp/OS_info.txt 2>&1'
156 - 'rm -rf /tmp/sosreport*FFDC*'
157 - 'sosreport --batch --tmp-dir /tmp --ticket-number FFDC >/tmp/OS_sosreport.txt 2>&1'
158 FILES:
159 - '/tmp/OS_isub.txt'
160 - '/tmp/OS_kern.txt'
161 - '/tmp/OS_authlog.txt'
162 - '/tmp/OS_syslog.txt'
163 - '/tmp/OS_info.txt'
164 - '/tmp/OS_sosreport.txt'
165 PROTOCOL:
166 - 'SSH'
167
168# Commands and Files to collect for RHE Linux only
Peter D Phan04aca3b2021-06-21 10:37:18 -0500169RHEL:
Peter D Phan72ce6b82021-06-03 06:18:26 -0500170 COMMANDS:
171 - '/usr/bin/ctversion -bv >/tmp/OS_rsct.txt 2>&1'
172 - 'cat /var/log/secure >/tmp/OS_secure.txt 2>&1'
173 - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1'
174 - '{ lsb_release -a; cat /etc/redhat-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1'
175 - 'rm -rf /tmp/sosreport*FFDC*'
176 - 'sosreport --batch --tmp-dir /tmp --label FFDC >/tmp/OS_sosreport.txt 2>&1'
177 FILES:
178 - '/tmp/OS_rsct.txt'
179 - '/tmp/OS_secure.txt'
180 - '/tmp/OS_syslog.txt'
181 - '/tmp/OS_info.txt'
182 - '/tmp/OS_sosreport.txt'
183 PROTOCOL:
184 - 'SSH'
George Keishinga3f3f592021-06-17 11:28:04 -0500185
186# Commands and Files to collect for AIX only
Peter D Phan04aca3b2021-06-21 10:37:18 -0500187AIX:
George Keishinga3f3f592021-06-17 11:28:04 -0500188 COMMANDS:
189 - 'errpt >/tmp/OS_errpt.txt 2>&1 ; errclear 0;'
190 - 'bindprocessor -q >/tmp/OS_processors.txt 2>&1'
191 FILES:
192 - '/tmp/OS_errpt.txt'
193 - '/tmp/OS_processors.txt'
194 PROTOCOL:
195 - 'SSH'