Find ESXI host from within guest

So a weird situation, theres a machine that we have that noone know where its at.  I can confirm its a vm by decoding the MAC on the Nic that says its vmware plus vmtools.  However, it doesn't show up in vcenter, my only thought is possible it's windows name differs from the name in vcenter or possibly sitting on a standalone esxi host somewhere.  We are running mix of 5.5 and 6.0.  Is there a way within the guest to determine which host it resides on?
LVL 1
leadthewayAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

aravind ancheWindows/Vmware Commented:
open http://yourESXaddress and check out the api For a quick export that you could parse by script use your script to pull the contents of http://ESXIPAddress/mob/ which lists the resources managed by that ESX host

Also
vmtoolsd.exe --cmd "info-get guestinfo.hypervisor.hostname"

check below link

http://www.virtuallyghetto.com/2011/01/how-to-extract-host-information-from.html
0
leadthewayAuthor Commented:
yeah i saw that article...it's old.. neither option works...the links don't open anything, and the vmtoolsd  command says no value found
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Have you checked which MAC Address, is located on the physical switch, and then running back to the host.

Also you checked RV Tools just to dump ALL MAC Addresses into a spreadsheet, and searching.
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

leadthewayAuthor Commented:
thats the thing, I have no idea which host it's on so i don't know where its plugged into..i was hoping there was something i could do from the guest to help me determine.  I'm not familiar with RV tools...I guess you're saying use it to pull all the macs and compare with the guest in case it has a different name in vcenter?
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Correct use RV Tools it's simple check if the Mac is known to vCenter because we have seen Mac addresses which have never been found!

Surely you can get networking to find the MAC address on the physical switch port which will then narrow down to a Host

Unless you have automated DR
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Can you also find it's IP address and check DNS or use IMAP to find out if it's Windows or Linux

Do you have MAC address changes allowed or Mac forged transmits allowed?

Do you know if it's a VM or just a virtual interface used by a host?
0
compdigit44Commented:
I think you best bet as other have mentioned is to work with your Networking team so they can isolate which port the MAC address is coming from on your core or upstream switch and hopefully point you in the right direction from there.
0
leadthewayAuthor Commented:
we have about 30 switches in the environment, thats not an easy task...but i know the mac of the virtual machine, so if i can compare it to what vcenter knows that should get me there
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
If you do not find a correlation between MAC Address you have (do you know it is a Virtual Machine, or just making an assumption because it has a VMware MAC Address ?)

because @compdigit44 raised a similar question on EE, but I don't believe he ever found it...and also remember VMware uses VMware MAC Addresses for virtual switches, virtual VMKernel Portgroups, and many other VMware vSphere interconnects, which all start 00:50:00!

So it may not be a virtual machine.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
leadthewayAuthor Commented:
yeah i couldn't find correlation, but it does have VMtools installed.. and yeah it starts with 00:50
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
How do you know the Virtual Machine has VMware Tools installed, but you don't know what the VM is, or where ?
0
leadthewayAuthor Commented:
because i can RDP to it..and can see the vmtools installed
0
leadthewayAuthor Commented:
tracked the MAC down on a switch and found the host plugged into that port and finally located
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
Great stuff do you know why MAC address differed to what was in vCenter?
0
leadthewayAuthor Commented:
well i don't think it differed, the issue was it was on a host not associated with the vcenter i was looking at, thats what led me down this path knowing there was a standalone host somewhere.
0
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
ah! okay, I understand....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VMware

From novice to tech pro — start learning today.