From 4ad277c3a8729c3e1776a36ce2e512e0bf831bf2 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 7 May 2023 18:35:33 -0500 Subject: [PATCH] update --- esxi-scripts/iscsi-vm-shutdown.ps1 | 2 +- powerwall.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/esxi-scripts/iscsi-vm-shutdown.ps1 b/esxi-scripts/iscsi-vm-shutdown.ps1 index 5fac0de8..db6da150 100755 --- a/esxi-scripts/iscsi-vm-shutdown.ps1 +++ b/esxi-scripts/iscsi-vm-shutdown.ps1 @@ -4,4 +4,4 @@ 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*'} | Shutdown-VMGuest -Confirm:$false +Get-Datastore | Where {$_.Name -like '*iSCSI1*' -or $_.Name -like '*iSCSI2*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} diff --git a/powerwall.sh b/powerwall.sh index 34b085b6..88e16240 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -295,9 +295,9 @@ SHUTDOWN_SERVER(){ ISCSIVMSHUTDOWN(){ for ESXIHOST in "${ESXIHOSTS[@]}"; do - echo ${ESXIHOST} + /opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1 ${ESXIHOST} done - #/opt/idssys/powerwall/esxi-scripts/iscsi-vm-shutdown.ps1 + } TEST(){