VMware

This Question is Possibly Answered

1 "correct" answer available (10 pts) 2 "helpful" answers available (6 pts)
7 Replies Last post: Jun 26, 2009 12:23 PM by jayctd  

ESX/ Virtual Center - VM's MAC address posted: Jun 23, 2009 2:17 AM

Click to view DawidM's profile Lurker 3 posts since
Jun 23, 2009

Hello All!

I would like to ask if it possible to find Virtual Machine's name by knowing it's MAC address only in any way ?

Thanks a lot,

Dawid

Re: ESX/ Virtual Center - VM's MAC address

1. Jun 23, 2009 4:25 AM in response to: DawidM
Click to view firestartah's profile Hot Shot 136 posts since
Aug 10, 2006
You will need to search the arp tables to compare the mac address to the name

"arp -a" will list everything in the ARP tables... so you might find what you want there.

If you found this information useful, please consider awarding points for "Correct" or "Helpful".

Re: ESX/ Virtual Center - VM's MAC address

3. Jun 23, 2009 5:23 AM in response to: DawidM
Click to view Chuck8773's profile Expert 229 posts since
May 4, 2007
I query the SQL Server directly to pull infoormation for our billing system. You can query the database for this information.

select e.name, n.mac_address, n.network_name


from vpx_vm v


inner join vpx_nic n on (v.id = n.entity_id)


inner join vpx_entity e on (v.id = e.id)


I didn't quickly see how to associate the IP address with the NIC. It may be in there though.

Found it.

select e.name, n.mac_address, n.network_name, i.ip_address

from vpx_vm v


inner join vpx_nic n on (v.id = n.entity_id)


inner join vpx_entity e on (v.id = e.id)


inner join vpx_ip_address i on (i.entity_id = n.entity_id and i.device_id = n.device_id)

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Re: ESX/ Virtual Center - VM's MAC address

4. Jun 25, 2009 4:06 AM in response to: DawidM
Click to view Chuck8773's profile Expert 229 posts since
May 4, 2007
Did this answer your question?

Charles Killmer, VCP

If you found this or other information useful, please consider awarding points for "Correct" or "Helpful".

Re: ESX/ Virtual Center - VM's MAC address

6. Jun 26, 2009 12:05 PM in response to: DawidM
Click to view azn2kew's profile Champion 2,941 posts since
Jun 21, 2006
I'm not sure what you're trying to accomplish, but this Virtual Mac Tool might give you some details http://www.run-virtual.com/?page_id=173

If you found this information useful, please consider awarding points for "Correct" or "Helpful". Thanks!!!

Regards,

Stefan Nguyen
VMware vExpert 2009
iGeek Systems Inc.
VMware, Citrix, Microsoft Consultant

Re: ESX/ Virtual Center - VM's MAC address

7. Jun 26, 2009 12:23 PM in response to: Chuck8773
Click to view jayctd's profile Hot Shot 152 posts since
Jun 3, 2009
I would note that this is pulling it from the SQL server for Virtual Center (just for reference)

Jered Rassier

##If you have found my post has answered your question or helpful please mark it as such##

VMware Developer

SDKs, APIs, Videos, Learn and much more in the Developer community.

Learn More

Developer Sample Code

Increase your developer productivity with VMware API sample code.

Learn More

VMworld Sessions & Labs

Online access to the latest VMworld Sessions & Labs and online services.

Learn more

Purchase PSO Credits Online

Purchase credits to redeem training and consulting services online.

Buy Now

Community Hardware Software

View reported configurations or report your own.

Learn More

VMware vSphere

Come witness the next giant leap in virtualization.

Register Today

Communities