Link to home
Start Free TrialLog in
Avatar of Leadtheway
LeadthewayFlag for United States of America

asked on

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?
Avatar of aravind anche
aravind anche
Flag of United States of America image

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
Avatar of Leadtheway

ASKER

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
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.
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?
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
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?
Avatar of compdigit44
compdigit44

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.
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
ASKER CERTIFIED SOLUTION
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
yeah i couldn't find correlation, but it does have VMtools installed.. and yeah it starts with 00:50
How do you know the Virtual Machine has VMware Tools installed, but you don't know what the VM is, or where ?
because i can RDP to it..and can see the vmtools installed
tracked the MAC down on a switch and found the host plugged into that port and finally located
Great stuff do you know why MAC address differed to what was in vCenter?
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.