I've been looking around to see if there was a way to get the mac address for a VM without VMware tools running. I know you can see this information from the vSphere gui when editing the hardware, so I would think it would be accessible without VMware tools, but maybe not.
Does anyone know if/how this can be accomplished?
Thanks,
Michael
That's correct, you don't need VMware Tools to be installed to extract the MAC Address, there are other attributes such as guest hostname as one example which is only available when the tools are installed.
Take a look at this script to extract the VMs MAC Address:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
That's correct, you don't need VMware Tools to be installed to extract the MAC Address, there are other attributes such as guest hostname as one example which is only available when the tools are installed.
Take a look at this script to extract the VMs MAC Address:
=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at:
VMware Code Central - Scripts/Sample code for Developers and Administrators
If you find this information useful, please award points for "correct" or "helpful".
Thanks a lot, that was exactly what I was looking for, I was on the right track but didn't quite get that far.
Much appreciated!