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?
Who is Participating?
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

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

check below link
leadthewayAuthor Commented:
yeah i saw that's old.. neither option works...the links don't open anything, and the vmtoolsd  command says no value found
Andrew Hancock (VMware vExpert / EE Fellow)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.
CEOs need to know what they should worry about

Nearly every week during the past few years has featured a headline about the latest data breach, malware attack, ransomware demand, or unrecoverable corporate data loss. Those stories are frequently followed by news that the CEOs at those companies were forced to resign.

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?
Andrew Hancock (VMware vExpert / EE Fellow)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
Andrew Hancock (VMware vExpert / EE Fellow)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?
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.
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
Andrew Hancock (VMware vExpert / EE Fellow)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.

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
Andrew Hancock (VMware vExpert / EE Fellow)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 ?
leadthewayAuthor Commented:
because i can RDP to it..and can see the vmtools installed
leadthewayAuthor Commented:
tracked the MAC down on a switch and found the host plugged into that port and finally located
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
Great stuff do you know why MAC address differed to what was in vCenter?
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.
Andrew Hancock (VMware vExpert / EE Fellow)VMware and Virtualization ConsultantCommented:
ah! okay, I understand....
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

From novice to tech pro — start learning today.