This commit is contained in:
2024-07-23 17:36:14 -05:00
parent ad2dbd2f5c
commit cdcc9c1170
4 changed files with 73 additions and 2 deletions

View File

@@ -167,7 +167,21 @@ COOLDOWN_SRVRM(){
SHUTDOWN_SERVER 10.10.2.10 -esxi off
${PW_FOLDER}/esxi-scripts/set-drs.ps1 2
}
COOLDOWN_SRVRM_OVERNIGHT(){
if [ "${1}" == "OFF" ]; then
${PW_FOLDER}/esxi-scripts/cooldown.overnight.ps1
sleep 20
SHUTDOWN_SERVER 10.10.2.16 -esxi off
sleep 90
${PW_FOLDER}/esxi-scripts/set-drs.ps1 2
elif [ "${1}" == "ON" ]; then
SHUTDOWN_SERVER 10.10.2.16 -power on
sleep 600
${PW_FOLDER}/esxi-scripts/coolup.overnight.ps1
fi
}
MAINT_MODE_VERIFY_SHUTDOWN(){
ESXIHOST=${1}
MaintMode=""
@@ -1032,6 +1046,7 @@ fi
dl|downlist) DOWNLIST;;
cooldown) COOLDOWN_SRVRM;;
cooldown-overnight) COOLDOWN_SRVRM_OVERNIGHT;;
oldhelp)
echo -e "${idsCL[White]} Usage: ${idsCL[LightYellow]}[powerwall or pw]${idsCL[LightCyan]} {option}"