Add Fan control dump log in FFDC

Change-Id: If3c600d8e8f054ab1f36d3e7b866e76b9067c04a
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index b2bd403..9f52be7 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -65,6 +65,7 @@
             - 'hexdump -C /var/lib/phosphor-logging/extensions/pels/badPEL >/tmp/PEL_logs_badPEL.txt'
             - 'guard -l >/tmp/GUARD_list.txt'
             - 'killall -s SIGUSR1 pldmd; sleep 5'
+            - 'fanctl dump'
         FILES:
             - '/tmp/BMC_flash_side.txt'
             - '/tmp/BMC_hwmon.txt'
@@ -85,6 +86,7 @@
             - '/tmp/PEL_logs_badPEL.txt'
             - '/tmp/GUARD_list.txt'
             - '/tmp/pldm_flight_recorder'
+            - '/tmp/fan_control_dump.json'
         PROTOCOL:
             - 'SSH'
 
diff --git a/lib/openbmc_ffdc_list.py b/lib/openbmc_ffdc_list.py
index 540b744..705c6cb 100755
--- a/lib/openbmc_ffdc_list.py
+++ b/lib/openbmc_ffdc_list.py
@@ -70,6 +70,7 @@
         'bmcweb_persistent_data.json': 'cat /home/root/bmcweb_persistent_data.json'
         + ' > /tmp/bmcweb_persistent_data.json',
         'GUARD_list.txt': 'guard -l > /tmp/GUARD_list.txt 2>&1',
+        'fan_control_dump.json': 'fanctl dump 2>&1',
     },
 }
 # Add file name and corresponding command needed for all Linux distributions