I am trying to get the MAC address of a VMware guest from the command line in ESXi 6.
The vSphere client shows the MAC address of the network adapters, which are configured as "automatic".
The command
vim-cmd vmsvc/get.config <id>
shows me many of the details of that particular guest, but not the MAC addresses of the network cards.
Is there a command that I can run from the VMware shell that displays the MAC address of a VMWare guest?
Best Answer
vim-cmd vmsvc/device.getdevices <id>
will show you details about the virtual devices of the VM, including the MAC adresses.