update
This commit is contained in:
@@ -7,6 +7,7 @@ source /opt/idssys/defaults/colors.inc
|
||||
source /opt/idssys/defaults/default.inc
|
||||
source /opt/idssys/powerwall/defaults.inc
|
||||
source ${PW_FOLDER}/settings.conf
|
||||
source ${PW_FOLDER}/shutdown-test.sh
|
||||
|
||||
TEST=true
|
||||
|
||||
@@ -1773,7 +1774,7 @@ 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 "Automated ESXi host shutdown"'
|
||||
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
|
||||
@@ -2346,7 +2347,9 @@ fi
|
||||
[ "${2^^}" == "SYS" ] && ISCSISYSVMSHUTDOWN || ISCSIVMSHUTDOWN
|
||||
;;
|
||||
shutdownhost) SHUTDOWN_SERVER ${2} ${3};;
|
||||
shutdowntest) SHUTDOWN_SERVER2 ${2} ${3};;
|
||||
shutdown_servers) SHUTDOWN_SERVERS ${2} ${3};;
|
||||
|
||||
hostpower) HOSTPOWER ${2} ${3};;
|
||||
host) HOSTMGMT ${2} ${3} ${4} ${5} ${6} ${7};;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user