Update powerwall.sh
This commit is contained in:
@@ -1160,10 +1160,10 @@ HOSTPOWER(){
|
|||||||
if [ "${2,,}" == "on" ] || [ "${2,,}" == "off" ] || [ "${2,,}" == "status" ]; then
|
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,,}
|
ssh root@${PW_RACADM_ACCESS} ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "'${PW_ESXI_PASS}'" chassis power ${2,,}
|
||||||
else
|
else
|
||||||
echo -e "${idsCL[LightCyan]}'${2,,}' command is not recognized${idsCL[Default]}"
|
echo -e "${idsCL[LightRed]}'${2,,}' command is not recognized${idsCL[Default]}"
|
||||||
fi
|
fi
|
||||||
else
|
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
|
fi
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user