update
This commit is contained in:
@@ -4,4 +4,4 @@
|
|||||||
|
|
||||||
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
|
Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword
|
||||||
|
|
||||||
Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'}
|
Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false
|
||||||
|
|||||||
@@ -295,7 +295,10 @@ SHUTDOWN_SERVER(){
|
|||||||
|
|
||||||
ISCSIVMSHUTDOWN(){
|
ISCSIVMSHUTDOWN(){
|
||||||
for ESXIHOST in "${ESXIHOSTS[@]}"; do
|
for ESXIHOST in "${ESXIHOSTS[@]}"; do
|
||||||
/opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1 ${ESXIHOST}
|
echo -en "Shutting down any VM's on '${ESXIHOST}, that are running on an iSCSI drive ... "
|
||||||
|
# /opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1 ${ESXIHOST} >/dev/null 2>&1
|
||||||
|
echo "DONE"
|
||||||
|
echo
|
||||||
done
|
done
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user