Why MSSQL Discovery creating duplicate instance records?

ru3779
Kilo Contributor

Hello, We are facing an issue with duplicate instance records within the MSSQL server instance records. We've recently started development on MSSQL Discovery to populate some additional information and to get AG, mirroring databases, clusters etc. For that, we've built a new probe and sensor with the help of Powershell script from   DBA team and disabled the out of the box probe, sensor and classifier. Everything is working as expected   like creating an instance with all the desired data, related catalogs and etc. But, here is an issue coming up with inserting records on CMDB. We already have some existing instance records in the CMDB instance table, when we run the Discovery, in some cases it creates a new empty record just with the instance name instead of updating the older one. In some case it updates the old one but creates the new record. In some cases if there multiple records for the same instance it either updates one record or doesn't updates both records, creates new record with updated information. We've also created a Business rule to update the older record if it finds the existing record with the same instance name else to create a new record. It worked in the beginning but when we started to test different servers it was still creating duplicates. can anyone help me with the troubleshooting to solve this issue. Thank you!

1 ACCEPTED SOLUTION

VivekSattanatha
Mega Sage
Mega Sage

Hi Rakeshunu,



You can create a separate identifier for MSSQL instance like below. This would avoid creating duplicated entries



find_real_file.png



Regards,


Vivek



Based on the impact hit like helpful or correct


View solution in original post

9 REPLIES 9

Vivek, I tried below scenarios but none of them seems to worked out. 1. Tried with name,sys_class_name -> failed 2. Tried with instance_name,sys_class_name,name -> failed 3. tried with above scenarios before and after disabling the Business Rule. We use Name as Unique Key. Please help me further.


Rakeshunu, when are you seeing the duplication?   If you run discovery multiple times in a row, is discovery creating a new CI each time, or is this happening over long periods of time (20-45 days for example)?


Hi Rakeshunu

Although identifier is correct but still discovery is populating duplicates for MSSQL Instance

Hi Rakeshunu

Although identifier is correct but still discovery is populating duplicates for MSSQL Instance

Shiksha
Tera Contributor

Hello everyone

I am facing issue of duplicate records creation in MSSQL instance.Checked identifier it is also correct but still i am getting duplicate records.Donot know the reason why