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