Update powerwall.sh

This commit is contained in:
2023-11-18 13:41:33 -06:00
parent ca2eb75be4
commit 37a22e15e7

View File

@@ -1395,6 +1395,7 @@ SHUTDOWN_SERVER(){
echo -en "${idsCL[LightCyan]}Powering off SAS Enclosure ... "
[ "${TEST}" != "true" ] && [ "$(CHECK_HOST 10.10.2.10)" == "false" ] && run=$(snmpset -v 1 -c private ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.14 i 2)
sleep 3s
echo -e "${idsCL[Green]}Done\n"
else
@@ -1461,6 +1462,7 @@ HOSTPOWER(){
if [ "${idracip}" == "10.10.2.20" ] && [ "${2,,}" == "on" ]; then
echo -en "${idsCL[LightCyan]}Powering ON the SAS Enclosure ... "
[ "${TEST}" != "true" ] && run=$(snmpset -v 1 -c private ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.14 i 1 >/dev/null 2>&1)
sleep 3s
echo -e "${idsCL[Green]}Done\n"
fi
@@ -1471,6 +1473,7 @@ HOSTPOWER(){
if [ "${idracip}" == "10.10.2.20" ] && [ "${2,,}" == "off" ]; then
echo -en "${idsCL[LightCyan]}Powering OFF the SAS Enclosure ... "
[ "${TEST}" != "true" ] && [ "$(CHECK_HOST 10.10.2.10)" == "false" ] && run=$(snmpset -v 1 -c private ${PW_APCPDU_IP} .1.3.6.1.4.1.318.1.1.12.3.3.1.1.4.14 i 2 >/dev/null 2>&1)
sleep 3s
echo -e "${idsCL[Green]}Done\n"
fi
else