Reply to Message

View discussion in a popup

Replying to:
kunaludapi
Expert
Expert

Get-Datacenter -name <DatacenterName> | Get-Cluster -Name <ClusterName> | Get-VMHost | Select-object Name,

        @{N="IPAddress"; E={($_ | Get-VMHostNetwork).VirtualNic | Where-Object {$_.ManagementTrafficEnabled} | Select-Object -ExpandProperty IP}},

        Manufacturer,

        Model,

        ProcessorType,

        @{N="BIOS version";E={$_.ExtensionData.Hardware.BiosInfo.BiosVersion}},

        @{N="HBA Model";E={($_ | get-vmhosthba -Type FibreChannel | select-object -ExpandProperty Model) -join ", "}},

        @{N="Driver";E={($_ | get-vmhosthba -Type FibreChannel | select-object -ExpandProperty Driver) -join ", "}}

I have added datacenter and cluster at the start of the script you will need to provide names.

--------------------------------------------------------------- Kunal Udapi Sr. System Architect (Virtualization, Networking And Storage) http://vcloud-lab.com http://kunaludapi.blogspot.com VMWare vExpert 2014, 2015, 2016 If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".
Reply
0 Kudos