How to create a report to show CIs with no relationship?

Luiz Lucena
Mega Sage

Hello everyone, 

I need to create a report to show all CIs without a relationship to anything. 

Any idea what the query should look like?

Has anyone ever done anything like that?

Thanks,

11 REPLIES 11

Akif_Shah
Kilo Sage
Kilo Sage

This may not be the most efficient solution but it will work.

Step 1: Create script include that gets the sys_ids of CI with no relationships

find_real_file.png

 

Step 2: Create report that calls the script include

find_real_file.png

Thanks, Akif.

Will try that.

Hi Akif, 

What table did you run the report?

I've tried against the [cmdb_ci] but nothing came out.

 

It was the cmdb_ci table. Is the client callable field set to true on the script include?
If you can share your code I can try to see if any issues