VMware Cloud Community
AmoghMaheshvip
Enthusiast
Enthusiast

IP address of Host displayed instead of Host Name...

I have given my esxi a Name...

but when I use Get-VMHost...

I get

Name                 ConnectionState PowerState NumCpu CpuUsageMhz CpuTotalMhz

----                 --------------- ---------- ------ ----------- -----------

192.168.**.**         Connected       PoweredOn   ** ** **

may I know why ?

0 Kudos
3 Replies
LucD
Leadership
Leadership

I suspect you used the IP address when you added that ESXi node to your vCenter.

Can you add the ESXi node with the FQDN?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
AmoghMaheshvip
Enthusiast
Enthusiast

i asked my network admin to make esxi access through FQDN..

now I can access the esxi in browser using fqdn..

but, in powercli if i use get-vmhost.. I dont get fqdn, instead I get IP

0 Kudos
LucD
Leadership
Leadership

That's because the name (IP address) used to register the ESXi node in vCenter sits in the vCenter DB.

The best solution would be to unregister the ESXi node from vCenter, and then add it with the FQDN.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos