LucD
Leadership
Leadership

To select a sprecific cluster you can modify this line

foreach ($cluster in (Get-View -ViewType ClusterComputeResource)) {

into

foreach ($cluster in (Get-View -ViewType ClusterComputeResource -Filter @{"Name"="myClusterName"})) {

To sort the results you can change this line

$MyReport += Get-HTMLTable $ShowHostStorage

into this

$MyReport += Get-HTMLTable ($ShowHostStorage | Sort-Object -Property HostLUN)

or

$MyReport += Get-HTMLTable ($ShowHostStorage | Sort-Object -Property VolumeName)

____________

Blog: LucD notes

Twitter: lucd22


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

Reply
0 Kudos