1#!/bin/bash 2# 3# config: 123 20 4# @brief: Collect host's logs 5# 6 7. ${DREPORT_INCLUDE}/functions 8 9DESCRIPTION="Host logs" 10LOGS_PATH="/var/lib/obmc/hostlogs" 11 12if [[ -d ${LOGS_PATH} ]]; then 13 # Flush currently collected messages 14 busctl --no-pager --verbose call \ 15 xyz.openbmc_project.HostLogger /xyz/openbmc_project/HostLogger \ 16 xyz.openbmc_project.HostLogger Flush 17 # Copy log directory 18 add_copy_file "${LOGS_PATH}" "${DESCRIPTION}" 19fi 20