Log collector: add new fan monitor log collection
Changes:
- Added command to force dump fan monitor log
on BMC.
- Added the command on robot and CLI FFDC script.
Tested:
- Ran from sandbox.
Change-Id: I70878b3eee24ccb62432ee73178d88f15bc4d7a5
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index e89dbc7..fae7a81 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -87,6 +87,7 @@
- "pldmtool fru getfrurecordtable>/tmp/PLDM_fru_record.txt"
- "killall -s SIGUSR1 pldmd; sleep 5"
- "fanctl dump"
+ - "killall -s SIGUSR1 phosphor-fan-monitor; sleep 5"
- "cat /var/lib/phosphor-software-manager/pnor/rw/DEVTREE >
/tmp/DEVTREE"
- "cat /home/root/bmcweb_persistent_data.json >
@@ -116,6 +117,7 @@
- "/tmp/PLDM_fru_record.txt"
- "/tmp/pldm_flight_recorder"
- "/tmp/fan_control_dump.json"
+ - "/tmp/fan_monitor_dump.json"
- "/tmp/DEVTREE"
- "/tmp/bmcweb_persistent_data.json"
PROTOCOL:
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index b95b2b1..cd7dd3f 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -104,6 +104,7 @@
),
"GUARD_list.txt": "guard -l > /tmp/GUARD_list.txt 2>&1",
"fan_control_dump.json": "fanctl dump; sleep 5",
+ "fan_monitor_dump.json": "killall -s SIGUSR1 phosphor-fan-monitor; sleep 5",
"DEVTREE": (
"cat /var/lib/phosphor-software-manager/pnor/rw/DEVTREE >"
" /tmp/DEVTREE 2>&1"