- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 03:16 AM
Hi,
We want to ensure new Server CIs and DB Instance CIs are created manually and then afterwards when deployed enriched by Discovery.
For Server CIs Discovery uses the ootb CI Identifier "Hardware Rule" which ensures a match on 'name' thus Discovery merges with the manually created Server CI with that same name.
However, for MSSQL instances in MSFT SQL Instances (cmdb_ci_db_mssql_instance) all though there is an ootb CI Identifer "MS SQL server" matching on sys_class_name + instance_name:
Discovery does not merge with a manually created CI in that table all though there is a match on field instance_name.
Instead Discovery creates a duplicate CI and relates that as Runs On to the Server CI and Contains to the Database CIs:
In the CI Identifier I tried adding a match on the 'Name' field with higher priority:
But same result Discovery creates a duplicate.
How do I get Discovery to match with manually created SQL Instance CIs?
Solved! Go to Solution.
- Labels:
-
Discovery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 05:28 AM
This is more then likely happening because your manually created instance doesn't have a relationship to the Server. The identifier for MSSQL isn't an independent one so when it does the lookup it also looks at what parent CI it is attached to. This way if you have multiple instances with the same name on different servers you will still get unique CIs. Check to see if there is a relationships to the server (should be runs on relationship) and if there isn't you will need to have that in place for it to identify correctly. Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2018 11:33 PM
Thank you all for the quick solution.
I actually already tried doing the Runs On relation to the server CI.
However, when I tested that I missed that the default identification rule uses the instance_name field instance of the name field and since I had only populated the name field it still created a duplicate.
However, re-testing with the Runs On relation to the Server CI and having the instance_name field populated Discovery nicely merges with the manually created instance CI 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-14-2018 02:51 AM
Great to hear. Thanks.