Failed Exploring CI Pattern in Discovery

AhmedOutlaw1
Kilo Expert

Hello all,

***DISCLAIMER***

I am truly willing to learn not just asking for a quick fix

We implemented Discovery a few months back and brought CIs into our CMDB. However, in attempt to implement service mapping I found the following errors in the discovery logs:

Failed Exploring CI Pattern, Pattern name: Credentialless Discovery Network Device

Failed Exploring CI Pattern, Pattern name: F5REST

Failed Exploring CI Pattern, Pattern name: IIS

Failed Exploring CI Pattern, Pattern name: Microsoft SharePoint

Failed Exploring CI Pattern, Pattern name: MSSql DB On Windows

Failed Exploring CI Pattern, Pattern name: Network Routing Device - Light

Failed Exploring CI Pattern, Pattern name: SSAS

Failed Exploring CI Pattern, Pattern name: Tomcat

Failed Exploring CI Pattern, Pattern name: Windows OS – Servers

Each error has a Process ID attached to it and I've used the forum to troubleshoot these errors. However, I am stumped. For example: 

Identifier: Identification CI Errors:
In payload no relations defined for dependent class [cmdb_ci_iisdirectory] that matches any containment/hosting rules: [cmdb_ci_microsoft_iis_web_server <- Runs <- cmdb_ci_iisdirectory,cmdb_ci_appl >> Runs on >> cmdb_ci_hardware]

I go in check the containment rule(s) and they seem to be correct but it is not correct (Don't know what Im doing wrong). Can anyone guide me to a resolving some of these errors?
1 ACCEPTED SOLUTION

Akshatha Ballal
Tera Expert

No relations defined for dependent class that matches any hosting/containment rule usually means the associated dependent class data is not present/captured in the pattern to successfully create the CI.

In payload no relations defined for dependent class [cmdb_ci_iisdirectory] that matches 
any containment/hosting rules:[cmdb_ci_microsoft_iis_web_server <- Runs <- cmdb_ci_iisdirectory,
cmdb_ci_appl >> Runs on >> cmdb_ci_hardware]

find_real_file.png

In the CI class manager for the table IIS Virtual Directory(cmdb_ci_iisdirectory), you can see it has a dependent
relationship on Microsoft IIS web server. This means that in order to populate the IIS virtual directory,
there should already be a IIS web server populated in the cmdb with a contains connection/relation to
IIS virtual directory, then only the pattern would be successfully executed.

So, in your pattern see the step and check if Microsoft IIS connection/creation is getting captured correctly.

View solution in original post

7 REPLIES 7

Rahul Priyadars
Giga Sage
Giga Sage

To Start with please look at the permissions. If Windows User which is used for Discovery has ADMIN Access or its a Domain Admin User - IIS , SQL DB , SQL Instances ets all will automatically come. Half of your pain will be gone by just using ADMIN permission user.

Regards

RP

i would want to extend following pattern"IIS Virtual Directory" to retrieve the all details of web application which hosted on azure plaftform  such as version,category  , some custom fields etc, for retrieve all details of application i have created "details "under extension , my queries what command to write retrieve all details  of web application  and when run below command i got error

anitha0887_0-1714570796926.png

 

Akshatha Ballal
Tera Expert

Found a relevant KB Article

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0725816