VMware Cloud Community
aneeshtm
Contributor
Contributor

NTP Service check using Pyvmomi

Hi ,

Can anyone tell me how can we verify NTP Sync status using Pyvmomi on esxi host with version 7.0 update 3?

Also i would like to know how to verify ntp service status using Pyvmomi on esxi host 7.0 update 3. Iam able to print the services in esxi using below code. But i just need to check only ntp. Can anyone help here ?

cv = content.viewManager.CreateContainerView(container=content.rootFolder, type=[vim.HostSystem], recursive=True)
for child in cv.view:
serviceSystem=child.configManager.serviceSystem
print(serviceSystem.serviceInfo.service)

 

Thanks, 

Aneesh

Labels (1)
  • Hi

0 Kudos
2 Replies
JohnnyGe
Contributor
Contributor

Thanks @lamw 🙂
I was trying to get a few things there:

  1. Verify that `Time Sychronization` is set to `Automatic`
  2. Verify that the `NTP Client` is set to `Enabled`
  3. Verify that the `NTP Service` Status is `Running`

    But couldn't see those via the link you provided, am I missing something?
0 Kudos