ckzthetoms
Contributor
Contributor

how to check NTP Virtual Machine in ESXi

i have many esx, in one esx many vm, how to check ntp every vm in esx?
because if i check every vm 1 by 1,it's will take a long time.

tks

Tags (1)
7 Replies
diegodco31
Leadership
Leadership

Have a look: Re: ESXi Host NTP Info

Diego Oliveira LinkedIn: http://www.linkedin.com/in/dcodiego
0 Kudos
scott28tt
VMware Employee
VMware Employee

What guest OS or OSes are you running in your VMs?

0 Kudos
nachogonzalez
Expert
Expert

Hello, hope you are doing fine

If you have VMware tools installed and you are using the Sync host time on all vms, all vms should sync it's time to the esxi hosts.

Other windows (if domain joined) you can get the information via powershell.


Also you can check this script:
Re: ESXi Host NTP Info

0 Kudos
ckzthetoms
Contributor
Contributor

if i 'am here, what shloud i do??

0 Kudos
ckzthetoms
Contributor
Contributor

rhel, centos, suse and windows

0 Kudos
ckzthetoms
Contributor
Contributor

yes i have VMware tools and installed every VM. so if VMware tools had installed every vm it should be compatible with Esxi NTP, right?

0 Kudos
scott28tt
VMware Employee
VMware Employee

You may need to check a few different things, given that your guest OSes can either use their own time sync processes or VMware Tools.

If it's via VMware Tools, you would need to check a couple of things:

1. Does every ESXi host have NTP correctly configured and running?

2. Does every VM have tools.syncTime = "1" in it's VMX file?

I think PowerCLI would be able to help you there.

If your guests are syncing directly via their own OS processes, that mix of OSes makes it harder to find a "one size fits all" solution.