| --- |
| # This yaml formatted file contains defaults items to collect FFDC for the targeted system |
| # COMMANDS - List of commands to be run on the corresponding targeted system (inband) |
| # to generate and/or collect data |
| # FILES - List of files; with complete path; on the corresponding targeted system |
| # to be copied to external destination |
| # PROTOCOL - Protocol used to communicate with targeted system; ssh, Rest, redfish, etc |
| # |
| # Note: Items in COMMANDS and FILES are not necessarily one-to-one correspondence. |
| # For example, a file could have been created by an internal process, |
| # and is listed in FILES to be collected. |
| # |
| |
| # Commands and Files to collect for a given OpenBMC system. |
| OPENBMC: |
| # Commands and File to take snapshot of linux based system. |
| # Filename is <OS>_general.txt, where <OS> is in [OPENBMC, RHEL, UBUNTU] |
| GENERAL: |
| COMMANDS: |
| - 'rm -rf /tmp/OPENBMC_general.txt' |
| - 'echo "++++++++++ cat /etc/os-release ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'cat /etc/os-release >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'cat /etc/timestamp >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ uname -a ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'uname -a >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ cat /etc/timestamp ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'cat /etc/timestamp >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ uptime;cat /proc/uptime ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'uptime >> /tmp/OPENBMC_general.txt' |
| - 'cat /proc/uptime >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ df -hT ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'df -hT >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ date;/sbin/hwclock --show ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - 'date >> /tmp/OPENBMC_general.txt' |
| - '/sbin/hwclock --show >> /tmp/OPENBMC_general.txt' |
| - '/usr/bin/timedatectl >> /tmp/OPENBMC_general.txt' |
| - 'echo -e "\n++++++++++ /usr/bin/obmcutil state ++++++++++" >> /tmp/OPENBMC_general.txt' |
| - '/usr/bin/obmcutil state >> /tmp/OPENBMC_general.txt' |
| FILES: |
| - '/tmp/OPENBMC_general.txt' |
| PROTOCOL: |
| - 'SSH' |
| |
| OPENBMC_LOGS: |
| COMMANDS: |
| - 'cat /sys/class/watchdog/watchdog1/bootstatus >/tmp/BMC_flash_side.txt' |
| - 'grep -r . /sys/class/hwmon/* >/tmp/BMC_hwmon.txt' |
| - 'top -n 1 -b >/tmp/BMC_proc_list.txt' |
| - 'ls -Al /proc/*/fd/ >/tmp/BMC_proc_fd_active_list.txt' |
| - 'journalctl --no-pager >/tmp/BMC_journalctl_nopager.txt' |
| - 'journalctl -o json-pretty >/tmp/BMC_journalctl_pretty.json' |
| - 'dmesg >/tmp/BMC_dmesg.txt' |
| - 'cat /proc/cpuinfo >/tmp/BMC_procinfo.txt' |
| - 'cat /proc/meminfo >/tmp/BMC_meminfo.txt' |
| - 'systemctl status --all >/tmp/BMC_systemd.txt' |
| - 'systemctl list-units --failed >/tmp/BMC_failed_service.txt' |
| - 'systemctl list-jobs >/tmp/BMC_list_service.txt' |
| - 'cat /var/log/obmc-console.log >/tmp/BMC_obmc_console.txt' |
| - 'cat /var/log/obmc-console1.log >/tmp/BMC_obmc_console1.txt' |
| - 'peltool -l >/tmp/PEL_logs_list.json' |
| - 'peltool -a >/tmp/PEL_logs_display.json' |
| FILES: |
| - '/tmp/BMC_flash_side.txt' |
| - '/tmp/BMC_hwmon.txt' |
| - '/tmp/BMC_proc_list.txt' |
| - '/tmp/BMC_proc_fd_active_list.txt' |
| - '/tmp/BMC_journalctl_nopager.txt' |
| - '/tmp/BMC_journalctl_pretty.json' |
| - '/tmp/BMC_dmesg.txt' |
| - '/tmp/BMC_procinfo.txt' |
| - '/tmp/BMC_meminfo.txt' |
| - '/tmp/BMC_systemd.txt' |
| - '/tmp/BMC_failed_service.txt' |
| - '/tmp/BMC_list_service.txt' |
| - '/tmp/BMC_obmc_console.txt' |
| - '/tmp/BMC_obmc_console1.txt' |
| - '/tmp/PEL_logs_list.json' |
| - '/tmp/PEL_logs_display.json' |
| PROTOCOL: |
| - 'SSH' |
| |
| # DUMP_LOGS: This section provides option to 'SCP if file exist'. |
| # COMMANDS: filename is preceded by ls -AX '. |
| # FILES: is not needed and is ignored if exists. |
| DUMP_LOGS: |
| COMMANDS: |
| - 'ls -AX /var/lib/systemd/coredump/core.*' |
| - 'ls -AX /var/lib/phosphor-debug-collector/dumps/*/*.tar.xz' |
| - 'ls -AX /var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz' |
| FILES: |
| - '/var/lib/systemd/coredump/core.*' |
| - '/var/lib/phosphor-debug-collector/dumps/*/*.tar.xz' |
| - '/var/lib/phosphor-debug-collector/hostbootdump/*/*.tar.gz' |
| PROTOCOL: |
| - 'SCP' |
| |
| # URLs and Files for OPENBMC redfish |
| # URLs and Files are one-to-one corresponding. |
| # File contains the data returned from 'redfishtool GET URL' |
| REDFISH_LOGS: |
| URL: |
| - '/xyz/openbmc_project/software/enumerate' |
| - '/xyz/openbmc_project/state/enumerate' |
| - '/org/open_power/enumerate' |
| - '/redfish/v1/AccountService/Accounts' |
| - '/redfish/v1/Managers/bmc/LogServices/Dump/Entries' |
| - '/redfish/v1/Systems/system/LogServices/Dump/Entries' |
| - '/redfish/v1/Systems/system/LogServices/EventLog/Entries' |
| FILES: |
| - 'REDFISH_software.json' |
| - 'REDFISH_bmc_state.json' |
| - 'REDFISH_openpower_control_occ_state.json' |
| - 'REDFISH_bmc_user_accounts.json' |
| - 'REDFISH_bmc_dump_entries.json' |
| - 'REDFISH_system_dumps_entries.json' |
| - 'REDFISH_event_log_entries.json' |
| PROTOCOL: |
| - 'REDFISH' |
| |
| # Commands and Files to collect for via out of band IPMI. |
| IPMI_LOGS: |
| COMMANDS: |
| - 'lan print' |
| - 'fru list' |
| - 'user list' |
| FILES: |
| - 'IPMI_LAN_print.txt' |
| - 'IPMI_FRU_list.txt' |
| - 'IPMI_USER_list.txt' |
| PROTOCOL: |
| - 'IPMI' |
| |
| # Commands and Files to collect for all Linux distributions |
| LINUX: |
| LINUX_LOGS: |
| COMMANDS: |
| - 'cat /sys/firmware/opal/msglog >/tmp/OS_msglog.txt' |
| - 'ppc64_cpu --frequency >/tmp/OS_cpufrequency.txt' |
| - 'dmesg >/tmp/OS_dmesg.txt' |
| - 'cat /var/log/opal-prd* >/tmp/OS_opal_prd.txt' |
| - 'cat /var/log/boot.log >/tmp/OS_boot.txt' |
| - 'cat /proc/cpuinfo >/tmp/OS_procinfo.txt' |
| - 'cat /proc/meminfo >/tmp/OS_meminfo.txt' |
| - 'netstat -a >/tmp/OS_netstat.txt' |
| - 'lspci >/tmp/OS_lspci.txt' |
| - 'lscpu >/tmp/OS_lscpu.txt' |
| - 'lscfg >/tmp/OS_lscfg.txt' |
| - 'journalctl --no-pager -b > /tmp/OS_journalctl_nopager.txt ' |
| FILES: |
| - '/tmp/OS_msglog.txt' |
| - '/tmp/OS_cpufrequency.txt' |
| - '/tmp/OS_dmesg.txt' |
| - '/tmp/OS_opal_prd.txt' |
| - '/tmp/OS_boot.txt' |
| - '/tmp/OS_procinfo.txt' |
| - '/tmp/OS_meminfo.txt' |
| - '/tmp/OS_netstat.txt' |
| - '/tmp/OS_lspci.txt' |
| - '/tmp/OS_lscpu.txt' |
| - '/tmp/OS_lscfg.txt' |
| - '/tmp/OS_journalctl_nopager.txt' |
| PROTOCOL: |
| - 'SSH' |
| |
| # Commands and Files to collect for Ubuntu Linux only |
| UBUNTU: |
| UBUNTU_LOGS: |
| COMMANDS: |
| - '{ lsusb -t ; lsusb -v ; } >/tmp/OS_isub.txt' |
| - 'tail -n 50000 /var/log/kern.log >/tmp/OS_kern.txt' |
| - '{ cat /var/log/auth.log; cat /var/log/auth.log.1 ; } >/tmp/OS_authlog.txt' |
| - 'tail -n 200000 /var/log/syslog >/tmp/OS_syslog.txt' |
| - '{ uname -a; dpkg -s opal-prd; dpkg -s ipmitool ; } >/tmp/OS_info.txt' |
| - 'rm -rf /tmp/sosreport*FFDC*' |
| - {'sosreport --batch --tmp-dir /tmp --ticket-number FFDC >/tmp/OS_sosreport.txt': 1200} |
| FILES: |
| - '/tmp/OS_isub.txt' |
| - '/tmp/OS_kern.txt' |
| - '/tmp/OS_authlog.txt' |
| - '/tmp/OS_syslog.txt' |
| - '/tmp/OS_info.txt' |
| - '/tmp/OS_sosreport.txt' |
| - '/tmp/sosreport*.tar.xz' |
| PROTOCOL: |
| - 'SSH' |
| |
| # Commands and Files to collect for RHE Linux only |
| RHEL: |
| RHEL_LOGS: |
| COMMANDS: |
| - '{ cat /etc/os-release; uname -a; rpm -qa ; } >/tmp/OS_info.txt' |
| - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt' |
| - 'rm -rf /tmp/sosreport*FFDC*' |
| - {'sosreport --batch --tmp-dir /tmp --label FFDC >/tmp/OS_sosreport.txt': 1200} |
| FILES: |
| - '/tmp/OS_info.txt' |
| - '/tmp/OS_syslog.txt' |
| - '/tmp/OS_sosreport.txt' |
| - '/tmp/sosreport*.tar.xz' |
| 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' |
| - 'tail -n 200000 /var/log/messages >/tmp/OS_syslog.txt' |
| - 'rm -rf /tmp/scc*.txz.md5' |
| - {'supportconfig >/tmp/OS_supportconfig.txt': 1200} |
| - 'cp /var/log/scc*.txz.md5 /tmp/' |
| FILES: |
| - '/tmp/OS_info.txt' |
| - '/tmp/OS_syslog.txt' |
| - '/tmp/OS_supportconfig.txt' |
| - '/tmp/scc*.txz.md5' |
| PROTOCOL: |
| - 'SSH' |
| |
| # Commands and Files to collect for AIX only |
| AIX: |
| AIX_LOGS: |
| COMMANDS: |
| - 'errpt >/tmp/OS_errpt.txt ; errclear 0;' |
| - 'bindprocessor -q >/tmp/OS_processors.txt' |
| FILES: |
| - '/tmp/OS_errpt.txt' |
| - '/tmp/OS_processors.txt' |
| PROTOCOL: |
| - 'SSH' |