This commit is contained in:
2023-12-22 08:56:40 -06:00
parent 3f3f3ed97e
commit df02ddb4f4
3 changed files with 2 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
VERS='2.5.49-12202023'
VERS='2.5.50-12222023'
noheader=' update service dailytemp confsync '

View File

@@ -708,7 +708,7 @@ HOSTPOWER(){
fi
if [ "${TEST}" != "true" ]; then
current_status=$(ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep 'Power is ${2,,}')
current_status=$(ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep "Power is ${2,,}")
if [ "${current_status}" == "" ]; then
echo -e "${idsCL[Green]}"
ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power ${2,,}

View File

@@ -602,7 +602,6 @@ HOSTMGMT(){
fi
done
else
echo "HERE: ${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}]} - 'Power is ${POWER,,}' - $(ipmitool -I lanplus -H ${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}]} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep "Power is ${POWER,,}")"
if [ "$(ipmitool -I lanplus -H ${PW_HOST_IDRACS[${PW_ESXI_HOST_NAMES[${ESXI_HOST}]}]} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power status | grep "Power is ${POWER,,}")" == "" ]; then
HOSTPOWER ${ESXI_HOST} ${POWER}
else