How can i extract the Downstream Relationship details and Upstream relationship details from cmdb_ci_server table for each server.

Sidharth Sarkar
Mega Contributor

How can i extract the Downstream Relationship details and Upstream relationship details from cmdb_ci_server table for each server.

basically i am trying to know the relationship between cmdb_ci_server,cmdb_ci_cluster and cmdb_ci_service_discovery 

If i go to the cmdb_ci_server table there is tab called Relations and under that i have two heading like below Downstream relationships and Upstream relationships  i need to have those details(Depends On) and used By for each servers

 

I can't upload the exact screenshot but this one is similar

find_real_file.png

1 ACCEPTED SOLUTION

Michael Fry1
Kilo Patron

In the navigation filter type cmdb_rel_ci.list - this will pull up all relationships. Then add a filter where Parent class - is Windows Server. That will give you all relationships and type of relationships:

 

find_real_file.png

View solution in original post

4 REPLIES 4

Michael Fry1
Kilo Patron

In the navigation filter type cmdb_rel_ci.list - this will pull up all relationships. Then add a filter where Parent class - is Windows Server. That will give you all relationships and type of relationships:

 

find_real_file.png

Sidharth Sarkar
Mega Contributor

Thanks Michael

That was just awesome , you are my hero and i consider you as my snow guru from now, struggling from last few days  .

 

One more help this gives me the Upstream Relationship , how can i get the Downstream Relationship?

If you use Child.Class - is - Windows Server - that should give you the upstream ones.

Child or Parent . class = Windows Server returns nothing.

What ihave done is 

Created a filter with Child = SERVERNAME which returns me all 4 upstream relation details corresponding that server like Name/Custodian/Steward

Similarly i am looking for Downstream details which has relation with CMDB_ci_cluster table

 

The relation tab in cmdb_ci_server shows as below,with the help of CMDB_ci_Rel table i cannow walk to Upstream relationships details like Name/Custodian/Steward.

Similarly i need the details of [Depends on] CL_XX_XX_XX_XX] which displayed under Downstream relationships 

 

Downstream relationships
ADMXXXXXXX
[Depends on] CL_XX_XX_XX_XX

Upstream relationships
ADMXXXXXXX
[Used by] Active Directory XXXXXXX
[Used by] Intermediary XXXXXXXX
[Used by] Intermediary XXXXXXXX
[Used by] Online XXXXXXXXX