VMware Communities > VMTN > General > Technology & Industry > Discussions

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
Reply

ESX/ Virtual Center - VM's MAC address

Jun 23, 2009 2:17 AM

Click to view DawidM's profile Lurker DawidM 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

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 23, 2009 4:25 AM
Click to view firestartah's profile Hot Shot firestartah 135 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".

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 23, 2009 4:27 AM
in response to: firestartah
Click to view DawidM's profile Lurker DawidM 3 posts since
Jun 23, 2009

Not exactly what I was asking...

Let me clarify .

Does Virtual Center or ESX softwarehave any tool to list all the VMs together with thier MAC addresses? (With IPs it is possbile)

Regards,

Dawid

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 23, 2009 5:23 AM
in response to: DawidM
Click to view Chuck8773's profile Expert Chuck8773 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".

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 25, 2009 4:06 AM
in response to: DawidM
Click to view Chuck8773's profile Expert Chuck8773 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".

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 25, 2009 4:22 AM
in response to: Chuck8773
Click to view DawidM's profile Lurker DawidM 3 posts since
Jun 23, 2009

Hi!

As soon as I ll test this solution I ll rate your answer.

As for now I dont have SQL access.

(I found another solution which is grepping vmx files on ESX datastores)

Regards,

Dawid

Reply Re: ESX/ Virtual Center - VM's MAC address Jun 26, 2009 12:05 PM
in response to: DawidM
Click to view azn2kew's profile Champion azn2kew 2,940 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
Reply Re: ESX/ Virtual Center - VM's MAC address Jun 26, 2009 12:23 PM
in response to: Chuck8773
Click to view jayctd's profile Hot Shot jayctd 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##

Actions