Can someone post the OOB CI Class Hierarchy?

RuthL
Tera Contributor

Hi all.

 

Could someone run and post the CI Class Hierarchy from one of the latest versions of SNow (we are on Washington DC but it doesn't have to be that version)?  In another thread (Solved: Listing all CI Classes (instead of browsing throug... - Page 2 - ServiceNow Community), Oleg posted a script that could be used and the output that results from that script and it was incredibly helpful. 

 

Unfortunately, I don't have the ability to run scripts, nor access the CI Class Manager.  I am hoping to get the latest version of the list as the one above is 5 years old.

 

Could someone please help?

1 ACCEPTED SOLUTION

mbourla
Giga Guru

Hi Ruth,


Here is the OOTB CI Class hierarchy (from Washington).


Regards
Michael

View solution in original post

7 REPLIES 7

mbourla
Giga Guru

Hi Ruth,


Here is the OOTB CI Class hierarchy (from Washington).


Regards
Michael

mbourla
Giga Guru

By the way, here's the code for generating that output e.g. in a background script:

function getChildTables(name, level) {  
	var table = new GlideRecord('sys_db_object');  
	if (table.get('name', name)) {  
		gs.print('\t'.repeat(level) + table.label + ' [' + name + ']');  
		var childTables = new GlideRecord('sys_db_object');  
		childTables.addQuery('super_class', table.sys_id);  
		childTables.orderBy('label');  
		childTables.query();  
		while (childTables.next()) {  
			getChildTables(childTables.name, level + 1); 
		}  
	}  
}  

getChildTables('cmdb_ci', 0);

 

Daniel Borkowi1
Mega Sage

Ok than I recommend to ask an Admin in your company, she/he can also execute the script posted by @mbourla. You will see then also you companies custom tables in CMDB, if there are some.