Optimizing Infrastructure CI Listing for Application Services Using CMDB Query Builder

senon
Tera Sage

Hello, experts.

I would like to display a list of infrastructure CIs associated with application services. I understand that there are two methods to link multiple tables for reporting: 'CMDB Query Builder' and 'Database View.'

In the 'Database View,' tables need to be joined at each relation level, which I find lacking in versatility. Therefore, I am using the 'CMDB Query Builder.'

â–  Questions
â‘  In the 'CMDB Query Builder,' the relation level can only be selected up to level 2, so I cannot display CIs at deeper levels. Is the maximum relation level indeed limited to 2?


â‘¡ Additionally, if there is a better way to display a list of infrastructure CIs associated with application services, could you please let me know?


â–  Current Configuration
Here is the dependency diagram of the application services and infrastructure CIs.

senon_0-1734682963273.png

 


Here are the settings for the CMDB Query Builder.

senon_1-1734683193741.png

 


These are the results displayed based on this configuration.

senon_2-1734683223844.png

 

Best regards.

senon

 

1 ACCEPTED SOLUTION

senon
Tera Sage

I've managed to solve this problem myself, so I'd like to share it with you.

 

The way to display all CIs associated with an application service is to use the Service Configuration Item Association table [svc_ci_assoc].

 

The documentation for this table can be found here.→Service tables

 

This allowed the database view I created to perform just as I wanted it to.

My preference is for a list view.

senon_1-1740114553796.png

 

Defining
senon_0-1740114274094.png

 

Try it!

senon_2-1740114660014.png

I also referred to the content of this community. → Database Views for CMDB Reports - ServiceNow Community

View solution in original post

1 REPLY 1

senon
Tera Sage

I've managed to solve this problem myself, so I'd like to share it with you.

 

The way to display all CIs associated with an application service is to use the Service Configuration Item Association table [svc_ci_assoc].

 

The documentation for this table can be found here.→Service tables

 

This allowed the database view I created to perform just as I wanted it to.

My preference is for a list view.

senon_1-1740114553796.png

 

Defining
senon_0-1740114274094.png

 

Try it!

senon_2-1740114660014.png

I also referred to the content of this community. → Database Views for CMDB Reports - ServiceNow Community