Update powerwall.sh

This commit is contained in:
2023-11-03 19:21:14 -05:00
parent 9b54bdb15b
commit f21806417a

View File

@@ -1272,7 +1272,9 @@ HOSTPOWER(){
echo
if [ "${2,,}" == "on" ] || [ "${2,,}" == "off" ] || [ "${2,,}" == "status" ]; then
echo -e "${idsCL[Green]}"
ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "${PW_ESXI_PASS}" chassis power ${2,,}
echo -e "${idsCL[Default]}"
else
echo -e "${idsCL[LightRed]}'${2,,}' command is not recognized${idsCL[Default]}"
fi