diff options
author | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-01-29 15:16:34 +1100 |
---|---|---|
committer | Sam Mendoza-Jonas <sam@mendozajonas.com> | 2016-02-10 16:21:08 +1100 |
commit | d531395a3ff60730238854b127925978f6eab289 (patch) | |
tree | e2dcc3ec892e43c0a3a2f5f03020a85f7fda7a31 /ui/ncurses/nc-sysinfo.c | |
parent | d974c3c39237c8e94bb3a51d3511d18dea01043e (diff) | |
download | petitboot-d531395a3ff60730238854b127925978f6eab289.zip petitboot-d531395a3ff60730238854b127925978f6eab289.tar.gz |
Retrieve BMC version info via IPMI
On BMC machines the "Get Device ID" and "Get BMC Golden Side Version"
IPMI commands are available. If possible retrieve some interesting
version numbers and display them in the System Information screen.
Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'ui/ncurses/nc-sysinfo.c')
-rw-r--r-- | ui/ncurses/nc-sysinfo.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/ui/ncurses/nc-sysinfo.c b/ui/ncurses/nc-sysinfo.c index c01b352..ca609cc 100644 --- a/ui/ncurses/nc-sysinfo.c +++ b/ui/ncurses/nc-sysinfo.c @@ -81,6 +81,22 @@ static void sysinfo_screen_populate(struct sysinfo_screen *screen, } } + if (sysinfo->n_bmc_current) { + line(NULL); + line("%s", _("BMC current side:")); + for (i = 0; i < sysinfo->n_bmc_current; i++) { + line("\t%s", sysinfo->bmc_current[i] ?: ""); + } + } + + if (sysinfo->n_bmc_golden) { + line(NULL); + line("%s", _("BMC golden side:")); + for (i = 0; i < sysinfo->n_bmc_golden; i++) { + line("\t%s", sysinfo->bmc_golden[i] ?: ""); + } + } + if (sysinfo->n_blockdevs) { line(NULL); line(_("Storage devices")); |