update
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
|
||||
VERS='2.5.16-12132023'
|
||||
VERS='2.5.17-12132023'
|
||||
|
||||
noheader=' update service dailytemp confsync '
|
||||
HC_CW=60
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-SYS*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-Datastore | Where {$_.Name -like '*iSCSI-PRI*'} | Get-VM
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,7 +9,6 @@ $VMLIST = Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS
|
||||
|
||||
Foreach ($VM in $VMLIST) {
|
||||
while((Get-VM $VM).PowerState -ne 'PoweredOff') {
|
||||
write-host waiting
|
||||
Start-Sleep -Seconds 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user