Upload files to "VMware/vCheck/vSphere"
This commit is contained in:
parent
3eb3fa25eb
commit
f59945e2ce
27
VMware/vCheck/vSphere/90 DRS hostgroup.ps1
Normal file
27
VMware/vCheck/vSphere/90 DRS hostgroup.ps1
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
$hostswithout = @()
|
||||||
|
|
||||||
|
foreach ($cluster in Get-Cluster) {
|
||||||
|
#check ob eine drs gruppe definiert ist
|
||||||
|
if ((Get-DrsClusterGroup -Cluster $cluster).Count -ge 1) {
|
||||||
|
#min eine drs group vorhanden!
|
||||||
|
foreach ($esx in (Get-Cluster $cluster | Get-VMHost )) {
|
||||||
|
#check ob host nicht in einer drs gruppe ist
|
||||||
|
if ((Get-DrsClusterGroup -Cluster $cluster).Member.Name -notcontains $esx.Name) {
|
||||||
|
$result = "" | Select Name, Cluster
|
||||||
|
$result.Name = $esx.Name
|
||||||
|
$result.Cluster = Get-Cluster -VMHost $esx
|
||||||
|
$hostswithout += $result
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$hostswithout
|
||||||
|
|
||||||
|
$Title = "90 DRS Hostgroup"
|
||||||
|
$Header = "90 DRS Hostgroup"
|
||||||
|
$Comments = "The following Hosts are not in a hostgroup"
|
||||||
|
$Display = "Table"
|
||||||
|
$Author = "evoila GmbH"
|
||||||
|
$PluginVersion = 1.0
|
||||||
|
$PluginCategory = "vSphere"
|
||||||
Loading…
Reference in a new issue