blob: d8847857c8851556243cb4498f8f7b3a79a6c3e0 [file] [log] [blame]
Artem Senichevefd5d742018-10-24 16:14:04 +03001#!/bin/bash
2#
3# config: 123 20
4# @brief: Collect host's logs
5#
6
7. $DREPORT_INCLUDE/functions
8
9desc="Logs from host"
10file_name="/var/lib/obmc/hostlogs"
11
12# Flush currently collected messages
13busctl --no-pager --verbose call \
14 xyz.openbmc_project.HostLogger /xyz/openbmc_project/HostLogger \
15 xyz.openbmc_project.HostLogger Flush
16
17add_copy_file "$file_name" "$desc"