Sunday, December 1, 2013

Rename ESXi Hosts in vCenter (Without Losing Historical Data)

Changing the display name of an ESXi host in vCenter is typically done by removing and then adding the host back into the vCenter inventory.  While this doesn't impact running virtual machines, the ESXi host's task, event and performance history is lost.  Also, the host managed object reference is modified and all custom values are cleared, which could impact 3rd party tools which track inventory objects externally.

There is, however, a way to rename the ESXi host in vCenter while retaining all of its historical data through the ReconnectHost_Task API method.