VMwareGeek_
Enthusiast
Enthusiast

Hi LucD

This script provides me what exactly I need for a while, but How Can I get only a list for specific host List?
Most of time my scripts start as follows;

$cluster=Get-Cluster -Name “Test-Cluster”
$HostList=Get-Cluster $cluster | Get-VMHost | Sort-Object Name –Descending | ft -Autosize

I only need to get a result of a specific cluster or chasis to list vmnic States
At the beginning of your script when I change esx entry with $HostList I got errors.

Get-VMHost -PipelineVariable esx |

Also is it possible to sort output in numeric order according to vmnic counter?

Reply
0 Kudos