VMware

This Question is Answered

2 "helpful" answers available (6 pts)
2 Replies Last post: Nov 5, 2009 10:12 AM by kilo666  

Get mac address without VMware tools running posted: Nov 5, 2009 9:43 AM

Click to view kilo666's profile Lurker 2 posts since
Nov 5, 2009

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

Re: Get mac address without VMware tools running

1. Nov 5, 2009 9:57 AM in response to: kilo666
Click to view lamw's profile Champion 2,813 posts since
Nov 27, 2007
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: getAllVMMacs.pl

=========================================================================
William Lam
VMware vExpert 2009
VMware ESX/ESXi scripts and resources at: http://engineering.ucsb.edu/~duonglt/vmware/
vGhetto Script Repository
VMware Code Central - Scripts/Sample code for Developers and Administrators
VMware Developer Comuunity
Getting Started with the vMA (tips/tricks)
Getting Started with the vSphere SDK for Perl
Twitter: @lamw

http://engineering.ucsb.edu/~duonglt/vmware/vexpert_silver_icon.jpg

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

Developer Social Media

Communities