Generalize IPMI execution

Chnages:
    - YAML with fully qualified command.
    - Changes in the script to execute as it is what user
      specify in the YAML.
    - Add check for IPMI supported.

Tested:
    - -t openbmc option
    - -t openbmc -rp IPMI option

Change-Id: I4185e9106591c6f5bb658b20d93c854fb3313096
Signed-off-by: George Keishing <gkeishin@in.ibm.com>
diff --git a/ffdc/ffdc_config.yaml b/ffdc/ffdc_config.yaml
index 8cc24b0..c9f23b2 100644
--- a/ffdc/ffdc_config.yaml
+++ b/ffdc/ffdc_config.yaml
@@ -123,9 +123,9 @@
     # Commands and Files to collect for via out of band IPMI.
     IPMI_LOGS:
         COMMANDS:
-            - 'lan print'
-            - 'fru list'
-            - 'user list'
+            - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H ${hostname} lan print
+            - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H ${hostname} fru list
+            - ipmitool -I lanplus -C 17 -U ${username} -P ${password} -H ${hostname} user list
         FILES:
             - 'IPMI_LAN_print.txt'
             - 'IPMI_FRU_list.txt'