VMware Cloud Community
twindude
Enthusiast
Enthusiast

DirectPath IO

Is it possible to create a script to show which ESXi host has directpath IO support in vsphere 5.0u2. I say support because in VC it shows supported or not supported.

Reply
0 Kudos
3 Replies
mattboren
Expert
Expert

Hello,

Get-VMHost | Select Name, @{n="DirectPathIOSupported"; e={$_.ExtensionData.Capability.VmDirectPathGen2Supported}}

Name         DirectPathIOSupported
----       ---------------------
myhost0.dom.com            True

Reply
0 Kudos
twindude
Enthusiast
Enthusiast

@mattboren that worked.. now to get it out to a text file... thank you!

Reply
0 Kudos
mattboren
Expert
Expert

Alright, good to hear.

As for getting it to a text file, you can just pipe the output to something like Export-Csv.

Reply
0 Kudos