Update powerwall.sh

This commit is contained in:
2023-10-31 21:36:11 -05:00
parent 373103d58a
commit 3ee692539b

View File

@@ -1160,10 +1160,10 @@ HOSTPOWER(){
if [ "${2,,}" == "on" ] || [ "${2,,}" == "off" ] || [ "${2,,}" == "status" ]; then
ssh root@${PW_RACADM_ACCESS} ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "'${PW_ESXI_PASS}'" chassis power ${2,,}
else
echo -e "${idsCL[LightCyan]}'${2,,}' command is not recognized${idsCL[Default]}"
echo -e "${idsCL[LightRed]}'${2,,}' command is not recognized${idsCL[Default]}"
fi
else
echo -e "${idsCL[LightCyan]}iDrac address cannot be found for '${1}'${idsCL[Default]}"
echo -e "${idsCL[LightRed]}Host cannot be found for '${1}'${idsCL[Default]}"
fi
echo
}