Hi,
I have a list of service console IP's of ESX servers but dont know their FQDN, dont know their VC details and dont know their credential details. But i can ping the SC IP and able to open the webaccess page using SC IP.
Is there a way to find FQDN of the ESX box using the IP. Please note ping -a (or) nbtstat -A do not work.
Is there a DNS service available ? Can't you do a nslookup ?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Hi Luc,
nslookup fails. Looks like the ESX SC IP belong to different domain which is trusted to the domain which i'm logged in. Any other way, pls suggest.
If all your ESX and ESXi hosts are connected to your vCenter Server, you can create a list of Service Console (for ESX) and Management Network (for ESXi) IP addresses and the host's FQDN's with:
Get-VMHost | ` Get-VMHostNetworkAdapter | ` Where-Object { ($_.GetType().Name -eq "HostConsoleVirtualNicImpl" ` -or $_.GetType().name -eq "HostVMKernelVirtualNicImpl") ` -and ($_.PortGroupName -eq "Service Console" ` -or $_.PortGroupName -eq "Management Network")} | ` Select-Object -Property IP,VMHost | ` Sort-Object -Property IP
Regards, Robert
Thanks for your effort Robert.
But unfortunately as i mentioned earlier dont know the VC details.
The scenario is there are many esx boxes in many domains and there were many license purchased from VMware and used. Now lost track of license usage and have to tally it. Tracked 27000 port and got all IP address and want to find ESX FQDN.
I'm afraid I can't think of a way to get the FQDN only through the SC and without ESX(i) credentials.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks Luc.
In the webaccess frontpage if VMware displays the FQDN of the ESX box that would be so good.
Could you possbly tracert the IP address. Find the switch that the host is connected to. Connect to the switch and line up the interface port with the physical server. Then go to the server room and connect directly to the server and find out the servername?