Add support to get system inventory details
Changes:
- Added log collection command to grab
Inventory data
Tested:
- Tested from sandbox
Change-Id: I636c3712deccf5de37728132cd87cfc72927869b
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index fae7a81..5cdd808 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -92,6 +92,7 @@
/tmp/DEVTREE"
- "cat /home/root/bmcweb_persistent_data.json >
/tmp/bmcweb_persistent_data.json"
+ - "/usr/bin/vpd-tool -i > /tmp/vpd-inventory.txt"
FILES:
- "/tmp/BMC_flash_side.txt"
- "/tmp/BMC_hwmon.txt"
@@ -120,6 +121,7 @@
- "/tmp/fan_monitor_dump.json"
- "/tmp/DEVTREE"
- "/tmp/bmcweb_persistent_data.json"
+ - "/tmp/vpd-inventory.txt"
PROTOCOL:
- "SSH"
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index 5820532..5092a58 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -69,6 +69,7 @@
"BMC_obmc_console1.txt": (
"cat /var/log/obmc-console1.log >/tmp/BMC_obmc_console1.txt 2>&1"
),
+ "vpd-inventory.txt": "vpd-tool -i >/tmp/vpd-inventory.txt 2>&1",
"PEL_logs_list.json": "peltool -l >/tmp/PEL_logs_list.json 2>&1",
"PEL_logs_complete_list.json": (
"peltool -l -a -f >/tmp/PEL_logs_complete_list.json 2>&1"