blob: d8847857c8851556243cb4498f8f7b3a79a6c3e0 [file] [log] [blame]
#!/bin/bash
#
# config: 123 20
# @brief: Collect host's logs
#
. $DREPORT_INCLUDE/functions
desc="Logs from host"
file_name="/var/lib/obmc/hostlogs"
# Flush currently collected messages
busctl --no-pager --verbose call \
xyz.openbmc_project.HostLogger /xyz/openbmc_project/HostLogger \
xyz.openbmc_project.HostLogger Flush
add_copy_file "$file_name" "$desc"