to apply the script, I figured out that adding chasis definition after esx provides me the result for that chasis. We have chasis named as esxc2p and blades named as esxc2p01 to esxc2p12.
Get-VMHost -PipelineVariable esx "esxc2p*" |
From my previous post, how can I use this with $HostList or Cluster based?