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