VMware Cloud Community
dbutch1976
Hot Shot
Hot Shot

Guest time source

Hello,

I have been asked to determine the source that each guest VM is getting their time from.  Some VMs have the 'synchronize with host' tick box checked in VMtools, other machines are configured to get their times directly from our time servers.

Is there a script I can run in order to tell me what source each of our guests is using?

Thanks.

0 Kudos
3 Replies
mittim12
Immortal
Immortal

I moved this over to the automation section to see if anyone can help you with a script. 

0 Kudos
dbutch1976
Hot Shot
Hot Shot

Thanks, much appreciated.

0 Kudos
RvdNieuwendijk
Leadership
Leadership

The next PowerCLI script will show you the status of the VMware Tools 'Synchronize guest time with host' tick box for all virtual machines and templates:

Get-View -ViewType VirtualMachine -Property Name,Config.Tools.SyncTimeWithHost | `
Select-Object -Property Name,@{N="SyncTimeWithHost";E={$_.Config.Tools.SyncTimeWithHost}}

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
0 Kudos