Update powerwall.sh

This commit is contained in:
2023-12-13 09:34:40 -06:00
parent e97afb5892
commit 452192206c

View File

@@ -1777,8 +1777,8 @@ MAINT_MODE_VERIFY_SHUTDOWN(){
sleep 3s
MaintMode=$(ssh root@${ESXIHOST} 'esxcli system maintenanceMode get')
done
# ssh root@${ESXIHOST} 'esxcli system shutdown poweroff -d 10 -r "Power-Monitor script initiated system shutdown"'
# ssh root@${ESXIHOST} 'esxcli system maintenanceMode set -e false -t 0'
ssh root@${ESXIHOST} 'esxcli system shutdown poweroff -d 10 -r "Power-Monitor script initiated system shutdown"'
ssh root@${ESXIHOST} 'esxcli system maintenanceMode set -e false -t 0'
# if [ "${ESXIHOST}" == "10.10.2.10" ]; then
# while ping -qw 10 -c3 "${ESXIHOST}">/dev/null 2>&1; do sleep 1; done