This commit is contained in:
2024-02-22 23:04:49 -06:00
parent c1e2bc516e
commit 01a63214e9
3 changed files with 70 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
VERS='2.6.38-02262024'
VERS='2.6.39-02262024'
noheader=' update service dailytemp confsync -r -report '

62
esxi-scripts/cooldown.ps1 Executable file
View File

@@ -0,0 +1,62 @@
#!/usr/bin/env pwsh
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Get-VM | Where {$_.Name -like '*MySQL-Node2*' -or $_.Name -like '*Webserver-Node2*' -or $_.Name -like '*LB-Node2*' -or $_.Name -like '*WAN-DNS-Node3*' -or $_.Name -like '*UniFi-Camera-Proxy*' -or $_.Name -like '*Internet Monitor*' -or $_.Name -like '*OMSA*' -or $_.Name -like '*OpenConnect VPN*' -or $_.Name -like '*RustDesk Server*'} | Shutdown-VMGuest -Confirm:$false
Disconnect-VIServer -Server $VCENTERHOST -Force Confirm:$false

View File

@@ -160,6 +160,11 @@ CONSERVE_POWER(){
SHUTDOWN_SERVER ${PW_MAIN_ISCSI} -esxi off
SHUTDOWN_SERVER 10.10.2.16 -esxi off
}
COOLDOWN_SRVRM(){
${PW_FOLDER}/esxi-scripts/cooldown.ps1
sleep 20
SHUTDOWN_SERVER 10.10.2.16 -esxi off
}
MAINT_MODE_VERIFY_SHUTDOWN(){
ESXIHOST=${1}
@@ -1000,6 +1005,8 @@ fi
dl|downlist) DOWNLIST;;
cooldown) COOLDOWN_SRVRM;;
oldhelp)
echo -e "${idsCL[White]} Usage: ${idsCL[LightYellow]}[powerwall or pw]${idsCL[LightCyan]} {option}"
echo