hello
i know for to have the vmk, ip, and vmhost
this commad is ok
Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\VMHostNetworkDetails.csv
but, i would have the name of the cluster
can you help me
thank you
You can use a calculated property
Get-VMHostNetworkAdapter | Select VMhost, @{N="Cluster";E={Get-CLuster -VMHost $_.VMHost | Select -ExpandProperty Name}},
Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec |
Export-Csv C:\VMHostNetworkDetails.csv
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi
thank you for your help
it's exactely what i have expected.
thanks