How to view 2 different CI Relationships Types in the single report

Nurulaslah Anua
Tera Contributor

Hi,

I would like to create a report from 'cmdb_rel_ci' table and combination of 2 different types:
1) 'Used by::Uses' (to list all esx servers under Child) and
2) 'Registered on::Has registered' (to list all VMs under Parent field).

 

The report should list all VMs (available in the Parent field) within the same vCenter (available in the Parent field).

 

cmdb_rel_ci - used by uses.png

 

cmdb_rel_ci - Registered on Has registered.png

I created a db view, but unable to get this view.

sample:

NurulaslahAnua_0-1729248288433.png

 

Can I use db view? if yes, what would be the appropriate WHERE clause?

 

Thank you

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Nurulaslah Anua 

 

I tried :

 

AGLearnNGrow_0-1729254803687.png

 

 

The format shared is not possible but above should work.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG ,

Thank you for your response.

However, this is not what I mean.

 

If you see the screenshot, I captured from the cmdvb_rel_ci table,

First, I will search for the vCenter name under the Parent field using the type "Used by::Uses." Then, it will list all the ESX hosts under the child.

After that, from one of the ESX hosts, I can list all VMs using the type "Registered on::Has registered." The VM name will be listed under the parent's name again.

 

In a single report, with just one search, I can see vCenter (Parent column) , ESX host (child column) and VMs (Parent column).

 

Thank you.

Hi @Nurulaslah Anua 

 

You cant get the same view , means the cell merging and all not possible in SN. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************