update
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
VERS='2.6.38-02262024'
|
VERS='2.6.39-02262024'
|
||||||
|
|
||||||
noheader=' update service dailytemp confsync -r -report '
|
noheader=' update service dailytemp confsync -r -report '
|
||||||
|
|
||||||
|
|||||||
62
esxi-scripts/cooldown.ps1
Executable file
62
esxi-scripts/cooldown.ps1
Executable 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -160,6 +160,11 @@ CONSERVE_POWER(){
|
|||||||
SHUTDOWN_SERVER ${PW_MAIN_ISCSI} -esxi off
|
SHUTDOWN_SERVER ${PW_MAIN_ISCSI} -esxi off
|
||||||
SHUTDOWN_SERVER 10.10.2.16 -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(){
|
MAINT_MODE_VERIFY_SHUTDOWN(){
|
||||||
ESXIHOST=${1}
|
ESXIHOST=${1}
|
||||||
@@ -1000,6 +1005,8 @@ fi
|
|||||||
|
|
||||||
dl|downlist) DOWNLIST;;
|
dl|downlist) DOWNLIST;;
|
||||||
|
|
||||||
|
cooldown) COOLDOWN_SRVRM;;
|
||||||
|
|
||||||
oldhelp)
|
oldhelp)
|
||||||
echo -e "${idsCL[White]} Usage: ${idsCL[LightYellow]}[powerwall or pw]${idsCL[LightCyan]} {option}"
|
echo -e "${idsCL[White]} Usage: ${idsCL[LightYellow]}[powerwall or pw]${idsCL[LightCyan]} {option}"
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in New Issue
Block a user