Deleted computers, users, or devices are not removed from Snow Inventory
Computers, users, or devices deleted in Snow License Manager may not be removed from Snow Inventory as expected.
In Snow License Manager 9 with Snow Inventory Server 6, the deletion process changed significantly from Snow License Manager 8 with Inventory Server 5. The deletion process no longer uses the Data Update Job (DUJ). Instead, it relies on the SnowLicenseManagerInventoryService, the Snow Inventory REST API, and tables in both the Snow License Manager and Snow Inventory databases.
The API is hosted on the Snow Inventory Server and is reached at the same address as the data receiver.
This issue has been seen in the following environments:
- Snow License Manager 6.x (unsupported) and 25.x.x or later
- Snow Inventory 6.x (unsupported)
The deletion flow is shown below:
For computer deletion, the process is:
- The computer is removed from the Snow License Manager web interface.
- The removed computer is added to
tblComputersDeleted. - The
SnowLicenseManagerInventoryServicechecks this table every six hours. - The service contacts the Snow Inventory REST API and sends the deleted computer ID.
- The computer ID is added to
inv.ClientsForDeletion. - The Snow Inventory Garbage Collector checks this table every 12 hours by default.
- The Garbage Collector deletes the specified computer ID from
inv.dataclient. - The deletion is complete.
The process is similar for users and devices, but different synchronization tables are used.
If deleted objects are not removed from Snow Inventory within the expected synchronization and Garbage Collector intervals, use the following checks to identify where the deletion process is failing.
Check the Snow License Manager deletion tables
The following tables in the Snow License Manager database are used by the deletion process:
tblComputersDeleted: Lists all deleted computers since the last synchronization.tblUsersDeleted: Lists all deleted users since the last synchronization.tblDevicesDeleted: Lists all deleted devices since the last synchronization.ds.tblComputersToDelete: Lists all devices to be deleted.ds.tblComputersMultiDeleteAgentJobStats: Lists jobs related to deletion. Check thatbatchidis not null and that there are no running jobs. Jobs should be finished and have a value of1. If a job has a value of0, update the job to1and check again.
Check the Snow Inventory deletion tables
The following tables in the Snow Inventory database are used by the deletion process:
inv.ClientsForDeletion: Lists all computers for the Garbage Collector to delete.inv.UsersForDeletion: Lists all users for the Garbage Collector to delete.inv.MeteringTSForDeletion: Lists all devices for the Garbage Collector to delete.inv.ServerAddress: Contains the API address used by theSnowLicenseManagerInventoryService.
Check the SnowLicenseManagerInventoryService
The SnowLicenseManagerInventoryService must be running for the deletion integration to work.
By default, deleted computers are synchronized every six hours. The interval can be adjusted using the ServiceInterval setting in the service configuration file.
Service details:
- Binary location:
C:\Program Files\Snow Software\Snow License Manager\Services\Inventory - Binary name:
SnowSoftware.LicenseManager.Inventory.Runtime.exe - Log location:
C:\Program Files\Snow Software\Logs\InventoryService - Configuration file:
SnowSoftware.LicenseManager.Inventory.Runtime.exe.config
The configuration file includes:
<appSettings> <add key="ServiceInterval" value="06:00:00" /> <add key="UpdateConfigInterval" value="06:00:00" /> <add key="InitialDelay" value="00:01:00" /> </appSettings>
Register the service if it is missing
If the SnowLicenseManagerInventoryService is missing or was not installed correctly, register it manually:
- Open Command Prompt as administrator.
-
Navigate to the service binary location:
C:\Program Files\Snow Software\Snow License Manager\Services\Inventory
-
Run:
SnowSoftware.LicenseManager.Inventory.Runtime.exe install
If the installation is successful, the following messages are displayed:
The Install phase completed successfully, and the Commit phase is beginning. The Commit phase completed successfully. The transacted install has completed.
Troubleshoot objects that are not deleted
If computers deleted in Snow License Manager are not deleted from Snow Inventory within 12 hours, or within the configured Garbage Collector interval, check the following:
- The
SnowLicenseManagerInventoryServiceis registered as a Windows service and is running. - The
SnowLicenseManagerInventoryServicelog does not contain errors. - The Snow Inventory API is reachable from the Snow License Manager server.
- The Snow Inventory Garbage Collector is running.
tblComputersDeletedandinv.ClientsForDeletiondo not contain objects older than approximately 12 hours when the deletion synchronization is performed.