Hey all
Can anyone advise me on how I can export the mac addresses of all VM's on a host?
Cheers
Simon
Depending on your needs, you may be able to accomplish this with RVTools (http://www.robware.net/)
André
Poweshell:
$vms = Get-VMHost esx_hostname | get-vm
foreach ($VM in $vms){$vnic = Get-NetworkAdapter (get-vm $vm); Write-host $vm "has MAC: " $vnic.MacAddress}
~Luke
If you don't mind using the PowerCLI, try the following...
Get-VM | Get-NetworkAdapter | Select Parent, MacAddress