Wednesday, September 15, 2010

Find MAC addresses used in VMware

The following 1 line powershell commands will help you find all the MAC addresses used in VMware for the VMs and VMKernel nics.

List all ESX host MAC addresses
get-vmhost | get-vmhostnetworkadapter | export-csv d:\temp\VMHost.csv

List all guest VM MAC addresses
get-vm | get-networkadapter | export-csv d:\temp\VMAdapter.csv

No comments: