Identify ESXi Hostname for a given Host-Id in a vSphere HA Cluster
search cancel

Identify ESXi Hostname for a given Host-Id in a vSphere HA Cluster

book

Article ID: 342952

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  1. Below is a scenario where identifying the ESXi Host name for a given Host-ID is required for analysis.
    • An unexpected failover in the vSphere HA (High Availability) cluster occurs.
    • The vpxd logs on vCenter Server and the fdm logs on ESXi host contain entries referencing the host-Id.

     2. On vCenter Server, in /var/log/vmware/vpxd/vpxd.log:

    faultDomainId = "########-####-####-####-#########-#-#######-vCenter##", version = 21,

info 'Default'] [VpxdMoHost::UpdateDasState] VC state for host host-123 (initialized -> initialized), FDM state (Live -> FDMUnreachable), src of state (host-### -> host-###)
info 'Default'] [VpxdMoHost::UpdateDasState] VC state for host host-789 (initialized -> initialized), FDM state (Live -> FDMUnreachable), src of state (host-### -> host-###)

    3. On the ESXi host, in /var/run/log/fdm.log:

    YYYY-MM-DDTHH:MM:SSSZ [######## info 'Cluster' opID=SWI-########] [ClusterManagerImpl::StoreDone] Wrote hostlist version 21 verbose 'Cluster' opID=###-####] [ClusterSlave::LiveCheck] Heartbeat still pending for slave @ host-123
    verbose 'Cluster' opID=###-####] [ClusterSlave::LiveCheck] Heartbeat still pending for slave @ host-789

Environment

VMware vSphere 7.x

VMware vSphere 8.x

Resolution

Below are the different ways to identify the ESXi Host name for a Host-ID:
 
Option 1: Determine the host-Id from /var/log/vmware/vpxd/vpxd.log on vCenter Server:
 
    YYYY-MM-DDTHH:MM:SSSZ[######## info 'vpxdvpxdInvtHostCnx'] [VpxdHostSync] Synchronizing host: host-123 of the host (host.example.com, ##.###.###.##)
 
Option 2: Use prettyPrint script to list the host details that includes the Host-ID and Host name:      

    $ /opt/vmware/fdm/fdm/prettyPrint.sh hostlist

    Example output:
    <faultDomainId>#####-#####-#####</faultDomainId>
    <version>21</version>
    <hostId>host-123</hostId>
    <hostName>host.example.com</hostName>
    <sslThumbprint>##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##:##</sslThumbprint>
    <ipAddress>##:##:##:###</ipAddress>
    <mac>##:##:##:##:##:##</mac>
    <mac>##:##:##:##:##:##</mac>
    <build>47####</build>

       Note: ESXi hosts in Maintenance mode in the cluster will not be listed in the output.