diff --git a/include/ipmitool/ipmi_mc.h b/include/ipmitool/ipmi_mc.h index 5546a3a..a840f78 100644 --- a/include/ipmitool/ipmi_mc.h +++ b/include/ipmitool/ipmi_mc.h @@ -157,6 +157,9 @@ struct ipm_get_watchdog_rsp { #define IPMI_SYSINFO_SET0_SIZE 14 #define IPMI_SYSINFO_SETN_SIZE 16 +/* System Information "Parameter selector" values: */ +#define IPMI_SYSINFO_SET_STATE 0x00 +#define IPMI_SYSINFO_SYSTEM_FW_VERSION 0x01 #define IPMI_SYSINFO_HOSTNAME 0x02 #define IPMI_SYSINFO_PRIMARY_OS_NAME 0x03 #define IPMI_SYSINFO_OS_NAME 0x04 diff --git a/lib/ipmi_mc.c b/lib/ipmi_mc.c index 2890c90..47a2e13 100644 --- a/lib/ipmi_mc.c +++ b/lib/ipmi_mc.c @@ -216,6 +216,8 @@ printf_sysinfo_usage(int full_help) lprintf(LOG_NOTICE, ""); lprintf(LOG_NOTICE, " Valid arguments are:"); } + lprintf(LOG_NOTICE, + " system_fw_version System firmware (e.g. BIOS) version"); lprintf(LOG_NOTICE, " primary_os_name Primary operating system name"); lprintf(LOG_NOTICE, " os_name Operating system name"); @@ -914,6 +916,8 @@ sysinfo_param(const char *str, int *maxset) else if (!strcmp(str, "delloem_url")) { *maxset = 2; return IPMI_SYSINFO_DELL_URL; + } else if (!strcmp(str, "system_fw_version")) { + return IPMI_SYSINFO_SYSTEM_FW_VERSION; } return (-1);