bahubalishervi
Contributor
Contributor

How to obtain both IP address and Host names for multiple ESXi hosts by running a PowerCLI command?

How to obtain both IP address and Host names for multiple ESXi hosts by running a PowerCLI command?

Reply
0 Kudos
admin
Immortal
Immortal

you can use below Powercli command to take network details

Output to CSV VM host network details:

Get-VMHostNetworkAdapter | select VMhost, Name, IP, SubnetMask, Mac, PortGroupName, vMotionEnabled, mtu, FullDuplex, BitRatePerSec | Export-Csv C:\VMHostNetworkDetails.csv

Regards,

Randhir

If you found my answers useful please consider marking them as Correct OR Helpful

Reply
0 Kudos