From edc248fea832d847cccac0a8e62c527fae763076 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 28 Mar 2023 21:32:19 -0500 Subject: [PATCH] update --- defaults.inc | 2 +- sys-iscsi-shutdown.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults.inc b/defaults.inc index d0168d1c..8bf8ad47 100755 --- a/defaults.inc +++ b/defaults.inc @@ -1,7 +1,7 @@ VERS='1.091222' -noupdate=' stop start ' +noupdate=' stop start _service ' mqtt_conn='/usr/bin/mosquitto_sub -h 127.0.0.1 -u mqtt -P 12mqtt34password56' #mysql_conn='/usr/bin/mysql -h mysqldb.scity.us -P 6033 --user=sysmoninsert --password=sysmoninsert' diff --git a/sys-iscsi-shutdown.ps1 b/sys-iscsi-shutdown.ps1 index 279caa20..7afdb5b5 100755 --- a/sys-iscsi-shutdown.ps1 +++ b/sys-iscsi-shutdown.ps1 @@ -4,4 +4,4 @@ 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*'} \ No newline at end of file +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