This commit is contained in:
2023-10-31 22:52:42 -05:00
parent fbe72b55a4
commit 4285d285c1
2 changed files with 2 additions and 2 deletions

View File

@@ -2,6 +2,6 @@
. /opt/idssys/powerwall/settings.ps1
Connect-VIServer -Server $PW_VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Connect-VIServer -Server $VCENTERHOST -Protocol https -User $VCENTERUSER -Password $VCENTERPASS | Out-Null
Get-VMHost -Name $args[0] | set-vmhost -State Maintenance

View File

@@ -1127,7 +1127,7 @@ SHUTDOWN_SERVER(){
echo -en "${idsCL[LightCyan]}Shutting down remaining VM's ... "
if [ "${TEST}" != "true" ]; then
${PW_FOLDER}/esxi-scripts/vm-shutdown.ps1 ${hostip} >/dev/null 2>&1
${PW_FOLDER}/esxi-scripts/iscsi-server-shutdown.ps1 ${hostip} >/dev/null 2>&1
# ${PW_FOLDER}/esxi-scripts/iscsi-server-shutdown.ps1 ${hostip} >/dev/null 2>&1
fi
echo -e "${idsCL[Green]}Done\n"