How to view 2 different CI Relationships Types in the single report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 03:54 AM - edited 10-18-2024 03:56 AM
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).
I created a db view, but unable to get this view.
sample:
Can I use db view? if yes, what would be the appropriate WHERE clause?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2024 05:34 AM
I tried :
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]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-20-2024 08:12 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2024 07:01 AM
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]
****************************************************************************************************************