Update powerwall.sh
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user