Update powerwall.sh

This commit is contained in:
2023-11-02 19:45:09 -05:00
parent ce6d8c190a
commit c4faa75677

View File

@@ -1271,7 +1271,8 @@ HOSTPOWER(){
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,,}"
# ssh root@${PW_RACADM_ACCESS} "ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P '${PW_ESXI_PASS}' chassis power ${2,,}"
ipmitool -I lanplus -H ${idracip} -U ${PW_ESXI_USER} -P "'${PW_ESXI_PASS}'" chassis power ${2,,}
else
echo -e "${idsCL[LightRed]}'${2,,}' command is not recognized${idsCL[Default]}"
fi