diff --git a/esxi-scripts/sys-iscsi-shutdown.ps1 b/esxi-scripts/sys-iscsi-shutdown.ps1 index 7afdb5b5..3017f0c9 100755 --- a/esxi-scripts/sys-iscsi-shutdown.ps1 +++ b/esxi-scripts/sys-iscsi-shutdown.ps1 @@ -4,4 +4,6 @@ Connect-VIServer -Server $args[0] -Protocol https -User $ESXiUsername -Password $ESXiPassword -Get-Datastore | Where {$_.Name -like '*iSCSI*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false \ No newline at end of file +# 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*'} \ No newline at end of file diff --git a/powerwall.sh b/powerwall.sh index 2881bbeb..abf47879 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -294,7 +294,7 @@ SHUTDOWN_SERVER(){ } TEST(){ - /opt/idssys/powerwall/esxi-scripts/sys-iscsi-shutdown.ps1 10.10.2.17 >/dev/null 2>&1 + /opt/idssys/powerwall/esxi-scripts/sys-iscsi-shutdown.ps1 ${1} } @@ -308,7 +308,7 @@ if [ ${action-x} ]; then restartall) RESTART_SERVICES;; checktemp) CHECKTEMP ${2};; checkpower) CHECKPOWER;; - test) TEST;; + test) TEST ${2};; shutdownhost) SHUTDOWN_SERVER ${2};;