This commit is contained in:
2023-03-28 21:32:19 -05:00
parent 071bfa6bab
commit edc248fea8
2 changed files with 2 additions and 2 deletions

View File

@@ -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'

View File

@@ -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*'}
Get-Datastore | Where {$_.Name -like '*iSCSI*'} | Get-VM | Where {$_.PowerState -like '*On*' -and $_.Name -notlike '*CLS*'} | Shutdown-VMGuest -Confirm:$false