This commit is contained in:
2024-01-16 12:37:05 -06:00
parent af457d3a53
commit 529f86ae17
2 changed files with 4 additions and 1 deletions

View File

@@ -818,7 +818,9 @@ 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,,}