Update powerwall.sh

This commit is contained in:
2023-10-31 21:34:53 -05:00
parent f42d07f15a
commit 373103d58a

View File

@@ -1153,6 +1153,10 @@ HOSTPOWER(){
fi
if [ "${idracip}" != "" ]; then
host=${PW_iDRACHOST_SHORTNAMES[${idracip}]}
echo -e "${idsCL[LightCyan]}Host : ${PW_HOST_ADDRESSES[${host}]} (${host})${idsCL[Default]}"
echo -e "${idsCL[LightCyan]}iDrac : ${idracip}${idsCL[Default]}"
echo
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