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 | # |
Peter D Phan | 2b8052d | 2021-06-22 10:55:41 -0500 | [diff] [blame] | 13 | |
Peter D Phan | 72ce6b8 | 2021-06-03 06:18:26 -0500 | [diff] [blame] | 14 | # Commands and Files to collect for a given OpenBMC system. |
| 15 | OPENBMC: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 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: |
George Keishing | 4dd1aa3 | 2021-07-07 01:11:07 -0500 | [diff] [blame] | 20 | - 'rm -rf /tmp/OPENBMC_general.txt' |
| 21 | - 'echo "++++++++++ cat /etc/os-release ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 22 | - 'cat /etc/os-release >> /tmp/OPENBMC_general.txt 2>&1' |
| 23 | - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 24 | - 'cat /etc/timestamp >> /tmp/OPENBMC_general.txt 2>&1' |
| 25 | - 'echo -e "\n++++++++++ uname -a ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 26 | - 'uname -a >> /tmp/OPENBMC_general.txt' |
| 27 | - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 28 | - 'cat /etc/timestamp >> /tmp/OPENBMC_general.txt 2>&1' |
| 29 | - 'echo -e "\n++++++++++ uptime;cat /proc/uptime ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 30 | - 'uptime >> /tmp/OPENBMC_general.txt 2>&1' |
| 31 | - 'cat /proc/uptime >> /tmp/OPENBMC_general.txt 2>&1' |
| 32 | - 'echo -e "\n++++++++++ df -hT ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 33 | - 'df -hT >> /tmp/OPENBMC_general.txt 2>&1' |
| 34 | - 'echo -e "\n++++++++++ date;/sbin/hwclock --show ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 35 | - 'date >> /tmp/OPENBMC_general.txt 2>&1' |
| 36 | - '/sbin/hwclock --show >> /tmp/OPENBMC_general.txt 2>&1' |
| 37 | - '/usr/bin/timedatectl >> /tmp/OPENBMC_general.txt 2>&1' |
| 38 | - 'echo -e "\n++++++++++ /usr/bin/obmcutil state ++++++++++" >> /tmp/OPENBMC_general.txt 2>&1' |
| 39 | - '/usr/bin/obmcutil state >> /tmp/OPENBMC_general.txt 2>&1' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 40 | FILES: |
George Keishing | 4dd1aa3 | 2021-07-07 01:11:07 -0500 | [diff] [blame] | 41 | - '/tmp/OPENBMC_general.txt' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 42 | PROTOCOL: |
| 43 | - 'SSH' |
Peter D Phan | 72ce6b8 | 2021-06-03 06:18:26 -0500 | [diff] [blame] | 44 | |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 45 | OPENBMC_LOGS: |
| 46 | COMMANDS: |
| 47 | - 'cat /sys/class/watchdog/watchdog1/bootstatus >/tmp/BMC_flash_side.txt 2>&1' |
| 48 | - 'grep -r . /sys/class/hwmon/* >/tmp/BMC_hwmon.txt 2>&1' |
| 49 | - 'top -n 1 -b >/tmp/BMC_proc_list.txt 2>&1' |
| 50 | - 'ls -Al /proc/*/fd/ >/tmp/BMC_proc_fd_active_list.txt 2>&1' |
| 51 | - 'journalctl --no-pager >/tmp/BMC_journalctl_nopager.txt 2>&1' |
| 52 | - 'journalctl -o json-pretty >/tmp/BMC_journalctl_pretty.json 2>&1' |
| 53 | - 'dmesg >/tmp/BMC_dmesg.txt 2>&1' |
| 54 | - 'cat /proc/cpuinfo >/tmp/BMC_procinfo.txt 2>&1' |
| 55 | - 'cat /proc/meminfo >/tmp/BMC_meminfo.txt 2>&1' |
| 56 | - 'systemctl status --all >/tmp/BMC_systemd.txt 2>&1' |
| 57 | - 'systemctl list-units --failed >/tmp/BMC_failed_service.txt 2>&1' |
| 58 | - 'systemctl list-jobs >/tmp/BMC_list_service.txt 2>&1' |
| 59 | - 'cat /var/log/obmc-console.log >/tmp/BMC_obmc_console.txt 2>&1' |
| 60 | - 'cat /var/log/obmc-console1.log >/tmp/BMC_obmc_console1.txt 2>&1' |
| 61 | - 'peltool -l >/tmp/PEL_logs_list.json 2>&1' |
| 62 | - 'peltool -a >/tmp/PEL_logs_display.json 2>&1' |
| 63 | FILES: |
| 64 | - '/tmp/BMC_flash_side.txt' |
| 65 | - '/tmp/BMC_hwmon.txt' |
| 66 | - '/tmp/BMC_proc_list.txt' |
| 67 | - '/tmp/BMC_proc_fd_active_list.txt' |
| 68 | - '/tmp/BMC_journalctl_nopager.txt' |
| 69 | - '/tmp/BMC_journalctl_pretty.json' |
| 70 | - '/tmp/BMC_dmesg.txt' |
| 71 | - '/tmp/BMC_procinfo.txt' |
| 72 | - '/tmp/BMC_meminfo.txt' |
| 73 | - '/tmp/BMC_systemd.txt' |
| 74 | - '/tmp/BMC_failed_service.txt' |
| 75 | - '/tmp/BMC_list_service.txt' |
| 76 | - '/tmp/BMC_obmc_console.txt' |
| 77 | - '/tmp/BMC_obmc_console1.txt' |
| 78 | - '/tmp/PEL_logs_list.json' |
| 79 | - '/tmp/PEL_logs_display.json' |
| 80 | PROTOCOL: |
| 81 | - 'SSH' |
Peter D Phan | 56429a6 | 2021-06-23 08:38:29 -0500 | [diff] [blame] | 82 | |
Peter D Phan | babf296 | 2021-07-07 11:24:40 -0500 | [diff] [blame] | 83 | # DUMP_LOGS: This section provides option to 'SCP if file exist'. |
Peter D Phan | e86d9a5 | 2021-07-15 10:42:25 -0500 | [diff] [blame] | 84 | # COMMANDS: filename is preceded by ls -AX '. |
Peter D Phan | babf296 | 2021-07-07 11:24:40 -0500 | [diff] [blame] | 85 | # FILES: is not needed and is ignored if exists. |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 86 | DUMP_LOGS: |
| 87 | COMMANDS: |
| 88 | - 'ls -AX /var/lib/systemd/coredump/core.*' |
| 89 | - 'ls -AX /var/lib/phosphor-debug-collector/dumps/*/*.tar.xz' |
| 90 | - 'ls -AX /var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz' |
| 91 | FILES: |
| 92 | - '/var/lib/systemd/coredump/core.*' |
| 93 | - '/var/lib/phosphor-debug-collector/dumps/*/*.tar.xz' |
| 94 | - '/var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz' |
| 95 | PROTOCOL: |
Peter D Phan | babf296 | 2021-07-07 11:24:40 -0500 | [diff] [blame] | 96 | - 'SCP' |
Peter D Phan | 0c66977 | 2021-06-24 13:52:42 -0500 | [diff] [blame] | 97 | |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 98 | # URLs and Files for OPENBMC redfish |
| 99 | # URLs and Files are one-to-one corresponding. |
| 100 | # File contains the data returned from 'redfishtool GET URL' |
| 101 | REDFISH_LOGS: |
| 102 | URL: |
| 103 | - '/xyz/openbmc_project/software/enumerate' |
| 104 | - '/xyz/openbmc_project/state/enumerate' |
| 105 | - '/org/open_power/enumerate' |
| 106 | - '/redfish/v1/AccountService/Accounts' |
| 107 | - '/redfish/v1/Managers/bmc/LogServices/Dump/Entries' |
| 108 | - '/redfish/v1/Systems/system/LogServices/Dump/Entries' |
| 109 | - '/redfish/v1/Systems/system/LogServices/EventLog/Entries' |
| 110 | FILES: |
George Keishing | a5079d7 | 2021-07-06 00:26:10 -0500 | [diff] [blame] | 111 | - 'REDFISH_software.json' |
| 112 | - 'REDFISH_bmc_state.json' |
| 113 | - 'REDFISH_openpower_control_occ_state.json' |
| 114 | - 'REDFISH_bmc_user_accounts.json' |
| 115 | - 'REDFISH_bmc_dump_entries.json' |
| 116 | - 'REDFISH_system_dumps_entries.json' |
| 117 | - 'REDFISH_event_log_entries.json' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 118 | PROTOCOL: |
| 119 | - 'REDFISH' |
| 120 | |
| 121 | # Commands and Files to collect for via out of band IPMI. |
| 122 | IPMI_LOGS: |
| 123 | COMMANDS: |
| 124 | - 'lan print' |
| 125 | - 'fru list' |
| 126 | - 'user list' |
| 127 | FILES: |
| 128 | - 'IPMI_LAN_print.txt' |
| 129 | - 'IPMI_FRU_list.txt' |
| 130 | - 'IPMI_USER_list.txt' |
| 131 | PROTOCOL: |
| 132 | - 'IPMI' |
George Keishing | eafba18 | 2021-06-29 13:44:58 -0500 | [diff] [blame] | 133 | |
Peter D Phan | 72ce6b8 | 2021-06-03 06:18:26 -0500 | [diff] [blame] | 134 | # Commands and Files to collect for all Linux distributions |
| 135 | LINUX: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 136 | LINUX_LOGS: |
| 137 | COMMANDS: |
| 138 | - 'cat /sys/firmware/opal/msglog >/tmp/OS_msglog.txt 2>&1' |
| 139 | - 'ppc64_cpu --frequency >/tmp/OS_cpufrequency.txt 2>&1' |
| 140 | - 'dmesg >/tmp/OS_dmesg.txt 2>&1' |
| 141 | - 'cat /var/log/opal-prd* >/tmp/OS_opal_prd.txt 2>&1' |
| 142 | - 'cat /var/log/boot.log >/tmp/OS_boot.txt 2>&1' |
| 143 | - 'cat /proc/cpuinfo >/tmp/OS_procinfo.txt 2>&1' |
| 144 | - 'cat /proc/meminfo >/tmp/OS_meminfo.txt 2>&1' |
| 145 | - 'netstat -a >/tmp/OS_netstat.txt 2>&1' |
| 146 | - 'lspci >/tmp/OS_lspci.txt 2>&1' |
| 147 | - 'lscpu >/tmp/OS_lscpu.txt 2>&1' |
| 148 | - 'lscfg >/tmp/OS_lscfg.txt 2>&1' |
| 149 | - 'journalctl --no-pager -b > /tmp/OS_journalctl_nopager.txt 2>&1' |
| 150 | FILES: |
| 151 | - '/tmp/OS_msglog.txt' |
| 152 | - '/tmp/OS_cpufrequency.txt' |
| 153 | - '/tmp/OS_dmesg.txt' |
| 154 | - '/tmp/OS_opal_prd.txt' |
| 155 | - '/tmp/OS_boot.txt' |
| 156 | - '/tmp/OS_procinfo.txt' |
| 157 | - '/tmp/OS_meminfo.txt' |
| 158 | - '/tmp/OS_netstat.txt' |
| 159 | - '/tmp/OS_lspci.txt' |
| 160 | - '/tmp/OS_lscpu.txt' |
| 161 | - '/tmp/OS_lscfg.txt' |
| 162 | - '/tmp/OS_journalctl_nopager.txt' |
| 163 | PROTOCOL: |
| 164 | - 'SSH' |
Peter D Phan | 72ce6b8 | 2021-06-03 06:18:26 -0500 | [diff] [blame] | 165 | |
| 166 | # Commands and Files to collect for Ubuntu Linux only |
Peter D Phan | 04aca3b | 2021-06-21 10:37:18 -0500 | [diff] [blame] | 167 | UBUNTU: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 168 | UBUNTU_LOGS: |
| 169 | COMMANDS: |
| 170 | - '{ lsusb -t ; lsusb -v ; } >/tmp/OS_isub.txt 2>&1' |
| 171 | - 'tail -n 50000 /var/log/kern.log >/tmp/OS_kern.txt 2>&1' |
| 172 | - '{ cat /var/log/auth.log; cat /var/log/auth.log.1 ; } >/tmp/OS_authlog.txt 2>&1' |
| 173 | - 'tail -n 200000 /var/log/syslog >/tmp/OS_syslog.txt 2>&1' |
| 174 | - '{ uname -a; dpkg -s opal-prd; dpkg -s ipmitool ; } >/tmp/OS_info.txt 2>&1' |
| 175 | - 'rm -rf /tmp/sosreport*FFDC*' |
Peter D Phan | 2b6cb3a | 2021-07-19 06:55:42 -0500 | [diff] [blame] | 176 | - {'sosreport --batch --tmp-dir /tmp --ticket-number FFDC >/tmp/OS_sosreport.txt': 1200} |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 177 | FILES: |
| 178 | - '/tmp/OS_isub.txt' |
| 179 | - '/tmp/OS_kern.txt' |
| 180 | - '/tmp/OS_authlog.txt' |
| 181 | - '/tmp/OS_syslog.txt' |
| 182 | - '/tmp/OS_info.txt' |
| 183 | - '/tmp/OS_sosreport.txt' |
George Keishing | 86399c9 | 2021-07-01 13:01:49 -0500 | [diff] [blame] | 184 | - '/tmp/sosreport*.tar.xz' |
| 185 | PROTOCOL: |
| 186 | - 'SSH' |
| 187 | |
Peter D Phan | 72ce6b8 | 2021-06-03 06:18:26 -0500 | [diff] [blame] | 188 | # Commands and Files to collect for RHE Linux only |
Peter D Phan | 04aca3b | 2021-06-21 10:37:18 -0500 | [diff] [blame] | 189 | RHEL: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 190 | RHEL_LOGS: |
| 191 | COMMANDS: |
George Keishing | 5b43c22 | 2021-07-09 01:10:00 -0500 | [diff] [blame] | 192 | - '{ cat /etc/os-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 193 | - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 194 | - 'rm -rf /tmp/sosreport*FFDC*' |
George Keishing | 9742ff2 | 2021-07-09 13:00:20 -0500 | [diff] [blame] | 195 | - {'sosreport --batch --tmp-dir /tmp --label FFDC >/tmp/OS_sosreport.txt 2>&1': 1200} |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 196 | FILES: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 197 | - '/tmp/OS_info.txt' |
George Keishing | 5b43c22 | 2021-07-09 01:10:00 -0500 | [diff] [blame] | 198 | - '/tmp/OS_syslog.txt' |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 199 | - '/tmp/OS_sosreport.txt' |
George Keishing | 86399c9 | 2021-07-01 13:01:49 -0500 | [diff] [blame] | 200 | - '/tmp/sosreport*.tar.xz' |
| 201 | PROTOCOL: |
| 202 | - 'SSH' |
| 203 | |
George Keishing | 5b43c22 | 2021-07-09 01:10:00 -0500 | [diff] [blame] | 204 | # Commands and Files to collect for SLES Linux only |
| 205 | SLES: |
| 206 | SLES_LOGS: |
| 207 | COMMANDS: |
| 208 | - '{ cat /etc/os-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt 2>&1' |
| 209 | - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt 2>&1' |
| 210 | - 'rm -rf /tmp/scc*.txz.md5' |
George Keishing | 9742ff2 | 2021-07-09 13:00:20 -0500 | [diff] [blame] | 211 | - {'supportconfig >/tmp/OS_supportconfig.txt 2>&1': 1200} |
George Keishing | 5b43c22 | 2021-07-09 01:10:00 -0500 | [diff] [blame] | 212 | - 'cp /var/log/scc*.txz.md5 /tmp/' |
| 213 | FILES: |
| 214 | - '/tmp/OS_info.txt' |
| 215 | - '/tmp/OS_syslog.txt' |
| 216 | - '/tmp/OS_supportconfig.txt' |
George Keishing | 5b43c22 | 2021-07-09 01:10:00 -0500 | [diff] [blame] | 217 | - '/tmp/scc*.txz.md5' |
| 218 | PROTOCOL: |
| 219 | - 'SSH' |
| 220 | |
George Keishing | a3f3f59 | 2021-06-17 11:28:04 -0500 | [diff] [blame] | 221 | # Commands and Files to collect for AIX only |
Peter D Phan | 04aca3b | 2021-06-21 10:37:18 -0500 | [diff] [blame] | 222 | AIX: |
George Keishing | 6ea92b0 | 2021-07-01 11:20:50 -0500 | [diff] [blame] | 223 | AIX_LOGS: |
| 224 | COMMANDS: |
| 225 | - 'errpt >/tmp/OS_errpt.txt 2>&1 ; errclear 0;' |
| 226 | - 'bindprocessor -q >/tmp/OS_processors.txt 2>&1' |
| 227 | FILES: |
| 228 | - '/tmp/OS_errpt.txt' |
| 229 | - '/tmp/OS_processors.txt' |
| 230 | PROTOCOL: |
| 231 | - 'SSH' |