This commit is contained in:
2024-01-16 12:54:01 -06:00
parent 529f86ae17
commit b8dda7bf96
2 changed files with 8 additions and 10 deletions

View File

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