How to find the Timestamps of the Hosts that are added/removed to or from the vCenter
search cancel

How to find the Timestamps of the Hosts that are added/removed to or from the vCenter

book

Article ID: 393626

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • This KB provides the steps to find the Timestamps of the Hosts that are added/removed to or  from the vCenter

Environment

  • VMware vCenter Server 6.x
  • VMware vCenter Server 7.x
  • VMware vCenter Server 8.x

Resolution

  1. SSH into the vCenter 
  2. Go to the vpxd directory

    cd /var/log/vmware/vpxd/
  3. Look for the keywords 'Add_host' and 'Remove_host'

    [ /var/log/vmware/vpxd ]# less vpxd.log | grep -i 'Add_host'
    [ /var/log/vmware/vpxd ]# less vpxd.log | grep -i 'Remove_host'
    The sample output will look similar to the example below: 

    [ /var/log/vmware/vpxd ]# less vpxd.log | grep -i 'Add_host'
    ####-##-##T##:##:##.###Z info vpxd[######] [Originator@6876 sub=MoCluster opID=######] Dispatching cluster store membership request; {######, ADD_HOST, domain-c#, [vim.HostSystem:host-#,example.com], attempt: 1}
    ####-##-##T##:##:##.###Z info vpxd[######] [Originator@6876 sub=MoCluster opID=###### req=######] Cluster store membership request completed; {######, ADD_HOST, domain-c#, [vim.HostSystem:host-#,example.com], attempt: 1}, e: (null)
     
    [ /var/log/vmware/vpxd ]# less vpxd.log | grep -i 'Remove_host'
    ####-##-##T##:##:##.###Z info vpxd[######] [Originator@6876 sub=MoCluster opID=######] Dispatching cluster store membership request; {######, REMOVE_HOST, domain-c#, [vim.HostSystem:host-#,example.com], attempt: 1}
    ####-##-##T##:##:##.###Z info vpxd[######] [Originator@6876 sub=MoCluster opID=###### req=######] Cluster store membership request completed; {######, REMOVE_HOST, domain-c#, [vim.HostSystem:host-#,example.com], attempt: 1}, e: (null)

    Note:example.com is the name (FQDN) of the ESXI Host that has been added and removed from the vCenter in the above output

Additional Information

vCenter でホスト追加および削除時のタイムスタンプを特定する方法