VMware {code} Community
kilo666
Contributor
Contributor
Jump to solution

Get mac address without VMware tools running

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

0 Kudos
1 Solution

Accepted Solutions
lamw
Community Manager
Community Manager
Jump to solution

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

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

View solution in original post

0 Kudos
2 Replies
lamw
Community Manager
Community Manager
Jump to solution

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

VMware Developer Comuunity

Twitter: @lamw

If you find this information useful, please award points for "correct" or "helpful".

0 Kudos
kilo666
Contributor
Contributor
Jump to solution

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!

0 Kudos