Update power.inc.sh

This commit is contained in:
2024-02-11 11:58:19 -06:00
parent 552a83dcc9
commit 95f25389ff

View File

@@ -405,7 +405,7 @@ CHECKPOWER(){
HOST_WATTS_disp="${idsCL[Green]}${AD}'A${spc}`IDS_NUMBER_FORMAT ${HOST_WATTS} 0`'W"
elif [ "$(ipmitool -I lanplus -H ${PW_HOST_IDRACS[${SENSOR}]} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep off)" != "" ]; then
HOST_WATTS_disp="${idsCL[LightRed]}Host powered down "
HOST_WATTS_disp="${idsCL[LightRed]}Host powered down"
HOST_WATTS=-1
elif [ "${HOST_WATTS}" = "0" ]; then
HOST_WATTS_disp="${idsCL[Yellow]}Host PSU not capable"