Discovery Pattern Step-Create Relationship not happening
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-16-2020 10:26 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 03:15 AM
Hi SID,
Understood your point .
In that case yes I am not populating the SERVICE in cmdb_ci_service table but I am bringing that SERVICE value via registry key and inserting in cmdb_ci_computer.u_service field. Yes as you said this matched value also exist already in cmdb_ci_service table as a record.
SO when I am bringing the SERVICE I was trying to insert in cmdb_ci_service table along with the cmdb_ci_computer table as I posted in below snap shots step by step.
Are you saying it is still not feasible ? I am totally new to patterns so might be But I am getting TEST results but it is not updating cmdb_rel_ci.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 10:55 AM
DOes the post processing script needs to have the cmdb_ci_service entry as well in Payload or it is gliderecord and then establish relation

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 11:25 AM
Hi,
Did you saw my comments below?
Thanks,
Ashutosh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 12:44 PM
How DO i see logs no way i can see gs.log/ gs.info anywhere in post processing script. How DO I see logs and where can You please tell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2020 02:52 PM
Also I have created Post Sensor script which I am really struggling it does not create.I dont know where is wrong here instead of giving . I am unable to see gs.log unable to see gs.info to understand if the script is executing or not NO IDEA.
Pattern executes success gives me the return message thats all no where tells what went wrong.
Can anyone please have a look in my script and tell what is wrong here its not making sense that record is not inserting in cmdb_rel_ci. How do I see logs i tried gs.log /gs.info could not find anywhere.