Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 258290

Filter Cluster Hosts from Get-View Using Cluster Wildcard

$
0
0

We run a daily script checking the configuration and status of ESXi hosts on multiple vCenters (>100) using the following:

 

Foreach ($vC in $vCList){

 

$ESXiHosts = Get-View -viewtype hostsystem -property Name,OverallStatus,Summary,AlarmActionsEnabled,Config,TriggeredAlarm,VM,ConfigIssue | Sort-Object Name

 

}

 

Does anyone know how to modify the above Get-View command so that it filters out the ESXi hosts in clusters matching the *Build cluster wildcard?


Viewing all articles
Browse latest Browse all 258290

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>