I've been trying to do an audit of time skews on some of my hosts recently. Using PowerCLI I found a few scripts that reference the ConfigManager.DateTimeSystem to get the ESXi Host datetime. However A few hosts seem to have 2 time entries/2 HostDateTimeSystem properties. Sometimes they are the same, sometimes they are different.
The hosts are all ESXi 5.5.
Using: Get-View -ViewType HostSystem -Property Name,ConfigManager.DateTimeSystem | sort Name | select Name,@{Name="Current VMHostTime";Expression={(Get-View $_.ConfigManager.DateTimeSystem)}}
Current VMHost Time
7/9/2014 3:55:20 PM
{7/9/2014 3:40:57 PM, 7/9/2014 3:55:20 PM} <------ Two entries at different times
7/9/2014 3:55:20 PM
7/9/2014 3:55:20 PM
7/9/2014 3:55:20 PM
7/9/2014 3:55:20 PM
{7/9/2014 3:55:20 PM, 7/9/2014 3:42:07 PM}
7/9/2014 3:55:20 PM
7/9/2014 3:55:20 PM
7/9/2014 3:43:16 PM
7/9/2014 3:40:39 PM
7/9/2014 3:41:26 PM
{7/9/2014 3:42:07 PM, 7/9/2014 3:55:20 PM}
7/9/2014 3:43:29 PM
7/9/2014 3:42:37 PM
7/9/2014 3:41:43 PM
7/9/2014 3:42:43 PM
7/9/2014 3:41:25 PM
{7/9/2014 3:40:58 PM, 7/9/2014 3:55:21 PM}
Dropping out the actual date formatting I see the following:
Current VMHost Time
VMware.Vim.HostDateTimeSystem
{VMware.Vim.HostDateTimeSystem, VMware.Vim.HostDateTimeSystem} <--- Two entries for the host time???
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
{VMware.Vim.HostDateTimeSystem, VMware.Vim.HostDateTimeSystem}
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
{VMware.Vim.HostDateTimeSystem, VMware.Vim.HostDateTimeSystem}
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
VMware.Vim.HostDateTimeSystem
{VMware.Vim.HostDateTimeSystem, VMware.Vim.HostDateTimeSystem}
Does anyone have any idea why/how a hand full of hosts have 2 time entries? Can this be corrected so we can be certain that the hosts are set to a single definitive time?