commit | 4e0251d1d7d2fb415ded18b858c92d3c2364f858 | [log] [tgz] |
---|---|---|
author | Zami Seck <zimzam17@gmail.com> | Fri Oct 14 12:05:22 2022 -0400 |
committer | Gopichand Paturi <gopichandpaturi@gmail.com> | Tue Apr 08 04:01:57 2025 +0000 |
tree | 8614c03bcdb8dc5e63d87d0a5be4ee76badbf659 | |
parent | 07aa6b6c772c79e4aa2a7bc37c5162ce5de01a7e [diff] |
dreport: Add audit.log Data to Dump Add all /var/log/audit/audit.log files to BMC dumps. This file contains a log of the events that occurred and who initiated them. Tested: ``` BMCDUMP$ ls -la audit-log.log -rw-r--r-- 1 xxxx xxxx 3993 Sep 19 10:59 audit-log.log $ tar -tvf $DUMPFILE | grep audit drwx------ root/root 0 2023-03-22 14:07 BMCDUMP.SIMP10R.00000000.20230322190714/audit/ -rw------- root/root 1729455 2023-03-22 14:07 BMCDUMP.SIMP10R.00000000.20230322190714/audit/audit.log -r-------- root/root 2097279 2023-03-22 14:07 BMCDUMP.SIMP10R.00000000.20230322190714/audit/audit.log.3 -r-------- root/root 2097160 2023-03-22 14:07 BMCDUMP.SIMP10R.00000000.20230322190714/audit/audit.log.2 -r-------- root/root 2097227 2023-03-22 14:07 BMCDUMP.SIMP10R.00000000.20230322190714/audit/audit.log.1 ``` Change-Id: I8e36edeca9ad40f8ddc02becf3a9246e0989d72a Signed-off-by: Janet Adkins <janeta@us.ibm.com> Signed-off-by: Gopichand Paturi <gopichandpaturi@gmail.com>
Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.
One such mechanism is dreport, a script that collects debug data and packages it into an archive file.
To build this package with meson, do the following steps:
1. meson builddir 2. ninja -C builddir
To clean the built files run ninja -C builddir clean
.
Tests can be run in the CI docker container, refer local-ci-build
or with an OpenBMC x86 sdk(see below for x86 steps).
meson -Dtests=enabled build ninja -C build test