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