update
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user