Discovery Pattern Step-Create Relationship not happening

SNowUser11
Kilo Guru

Hello Experts,

I was looking to create relationship between a cmdb_ci_computer and cmdb_ci_service Using relation Depends On:: UsedBy

cmdb_ci_computer table contains a field u_service which is same as cmdb_ci_service table. Eg:

On Table cmdb_ci_computer

--------------------------------

Name                 u_service(String field) getting this via Discovery

COMPUTER1      Acrobat

 

On Table cmdb_ci_service 

-------------------------------

Name

Acrobat

 

Then on Table 'cmdb_rel_ci' want to create a relation

Parent             Type                            Child

Acrobat            Depends On::UsedBy     COMPUTER1

It does not give me error but does not create result when i do TEST . Any step I am missing please guide.  Thanks

find_real_file.png

 

30 REPLIES 30

How can I check gs.log or gs.info logs for Discovery processing scripts . I cant see anywhere for gs.log or gs.info.

Hi,

When you run the pattern then in pattern log at the end you can see which pre post processing script is running and then you can check what is happening in that script

Thanks,
Ashutosh

Hi Ashutosh The issue is I can't see any logs there yes I do see all processing scripts but my assumption is the code is not working coz when I checked as static value it works but the script it does not executes. It is not getting parent and child sys i'd that's my assumption. Is there any best way to fetch the values from payload I looked OOB ones and tried similarly as you can see but code does not executes Thanks

Also I can not find out which block is not executing no way to find logs. Please let m eknow if anyone has done such scripts to pull information and update or insert CI rel Thanks

Hi,

Can you email me at ashu759@gmail.com

 

Thanks,
Ashutosh