summaryrefslogtreecommitdiff
path: root/util/ihealth.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2017-06-25 08:13:40 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2017-06-25 08:13:40 +0200
commit401b3073c7af7fe89dd70955ef4431da91cc3f29 (patch)
tree0810163002c12b34f0a2c1784e7189a0730d6a33 /util/ihealth.c
parent715160edeb4dfc4335f8def440806ad0d5307fec (diff)
parentde044ac29fcfc641dc1465f310be588ffe2fe8d3 (diff)
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'util/ihealth.c')
-rw-r--r--util/ihealth.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/util/ihealth.c b/util/ihealth.c
index 974fa95..0ba6a79 100644
--- a/util/ihealth.c
+++ b/util/ihealth.c
@@ -82,7 +82,7 @@ extern int oem_supermicro_get_firmware_str(char *pstr, int sz); /*oem_supermicro
* Global variables
*/
static char * progname = "ihealth";
-static char * progver = "3.04";
+static char * progver = "3.05";
static char fdebug = 0;
static char fipmilan = 0;
static char fcanonical = 0;
@@ -421,9 +421,12 @@ static int get_power_state(uchar *rdata, int rlen)
uchar ccode;
int ret;
- ret = ipmi_cmdraw( GET_POWER_STATE, NETFN_APP,
- g_sa, g_bus, g_lun,
+ ret = ipmi_cmdraw( GET_POWER_STATE, NETFN_APP, g_sa, g_bus, g_lun,
+ idata,0, rdata,&rlen,&ccode, fdebug);
+ if (ret == 0 && ccode == 193) { /*0xB7, usu. SuperMicro, retry */
+ ret = ipmi_cmdraw( GET_POWER_STATE, NETFN_APP, g_sa, g_bus, g_lun,
idata,0, rdata,&rlen,&ccode, fdebug);
+ }
if (ret == 0 && ccode != 0) ret = ccode;
return(ret);
} /*end get_power_state()*/