How to modify inventory version synchronization cron job schedule in a VMware Cloud Foundation Environment?
search cancel

How to modify inventory version synchronization cron job schedule in a VMware Cloud Foundation Environment?

book

Article ID: 311975

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • Scheduled daily cron job is running at 3 AM server time to synchronize the inventory versions of the managed products within VMware Cloud Foundation Environment. 
  • Inventory version synchronization fails on a daily basis due to other operations scheduled for the same time.

 

Environment

VMware Cloud foundation 5.2

Cause

The default scheduled time for the inventory version synchronization job at 3 AM server time of the SDDC manager, interferes with other operations performed during that time.

Resolution

Follow the below steps:

1. Open a SSH session to the SDDC Manager VM and switch to the root user
   su -
2. In a text editor, open the file /etc/vmware/vcf/operationsmanager/application.properties and go to the end of the file
   vi /etc/vmware/vcf/operationsmanager/application.properties
3. Add/Change the following entry to the file with the desired cron job schedule (the below example is for 6 AM server time. Use date to help determine server time.)
   inventory.version.sync.interval=0 6 * * * ?
4. Type ESC and then :wq! to save the file
5. Restart the operationsmanager service
   systemctl restart operationsmanager


Workaround:

Currently there is no workaround.

Additional Information

The Inventory Sync will not register a task in the SDDC UI if it does not detect a configuration drift on the components. 

For instance, in from the var/log/vmware/vcf/operationsmanager/operationsmanager.log


2025-07-25T03:00:02.848+0000 INFO  [vcf_om,6882f3309c01303adf19adb4afbd3cee,e1fe] [c.v.v.i.s.s.impl.VcenterVersionSync,pool-10-thread-1] Vcenter <vCenter UUID> has inventory version {"
version":"8.0.3.00400-24322831"} and product version {"version":"8.0.3.00400-24322831"}
2025-07-25T03:00:02.887+0000 INFO  [vcf_om,6882f3309c01303adf19adb4afbd3cee,e1fe] [c.v.v.s.https.vapi.VapiClientFactory,pool-10-thread-1] Closing session for user VSPHERE.LOCAL\Administrator created on Friday, July 25, 2025 at 3:00:02 AM Greenwich Mean Time
2025-07-25T03:00:02.888+0000 DEBUG [vcf_om,6882f3309c01303adf19adb4afbd3cee,e1fe] [c.v.v.v.s.i.VersionSyncServiceImpl,pool-10-thread-1] Validating the result of the inventory sync: {"entitiesToSync":["NSXT_CLUSTER","ESXI","VCENTER"],"entitiesToUpdate":[],"completedInventorySyncTasks":[{"entity":"VCENTER","syncStatus":"SUCCEEDED","errors":[]},{"entity":"ESXI","syncStatus":"SUCCEEDED","errors":[]},{"entity":"NS
XT_CLUSTER","syncStatus":"SUCCEEDED","errors":[]}],"failedInventorySyncTasks":[]}
2025-07-25T03:00:02.889+0000 DEBUG [vcf_om,6882f3309c01303adf19adb4afbd3cee,e1fe] [c.v.v.v.s.i.VersionSyncServiceImpl,pool-10-thread-1] Inventory sync completed successfully for all entities
2025-07-25T03:00:02.889+0000 DEBUG [vcf_om,6882f3309c01303adf19adb4afbd3cee,e1fe] [c.v.v.v.s.s.RetryVersionSyncHandler,pool-10-thread-1] No OOB upgrade detected, version sync is not required
2025-07-25T03:00:02.890+0000 DEBUG [vcf_om,6882f332cfd6f5964b35e66a922a1447,2b32] [c.v.v.p.r.a.AutoRotatePasswordTrigger,pool-10-thread-1] Auto rotate service running...