List of all CMDB classes, attributes.

Dan Belostotsk1
Mega Expert

Hi,
 Where can I find a list of all OOTB CMDB classes and their attributes? 
 I've searched the documentation but could find anything matching. 

Thanks.

 

 

1 ACCEPTED SOLUTION

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hi Dan,

I never seen such a comprehensive list. What is the requirement for this. Since we are talking about the CMDB that has about 700 tables when all applications that uses it are active and I have no clue of what the totally number of attributes (fields) are here, but I guess that is more than a handful 🙂

//Göran
Feel free to connect with me:
LinkedIn & Twitter
Subscribe to my YouTube Channel
Buy The Witch Doctor's Guide To ServiceNow 

View solution in original post

13 REPLIES 13

Jacob Groenewol
Giga Contributor

Type one of these commands in the search box of the navigation bar.

ServiceNow tables:
sys_db_object.list

ServiceNow attributes:
sys_dictionary.list

find_real_file.png

Johnny Chong1
Tera Contributor

I was finding the same as well.  In the process of finding it, I found "CMDB table descriptions" which gave me a high-level overview of what's in the CMDB before I create a new class.  You will still need to go to its specific table for its attribute (in sys_dictionary table).

https://docs.servicenow.com/bundle/newyork-servicenow-platform/page/product/configuration-management...

 

find_real_file.png

Constantine Kr1
Giga Guru

As an alternative, I use a script to get the data as I have seen environments where custom CMDB classes have been created without using the "cmdb_ci" prefix. The script must be ran in a scoped app as it relies on a ServiceNow class only available in a scope. The scope can easily be changed in a Scripts - Backgrounds at the bottom of the page to any scope other than Global.

Details for the scope specific class, GlideTableHierarchy.

Script:

gs.info("Start of the script, **must be ran in a scoped app to use the GlideTableHierarchy class**");

var count = 0;
var tables = new GlideTableHierarchy("cmdb_ci");

var arrayTables = tables.getAllExtensions().toString().split(",");

arrayTables.forEach(function(element){
  var grTableInfo = new GlideRecord("sys_db_object"); //Get the common name
  grTableInfo.get("name", element.toString());
  gs.info(element +"," + grTableInfo.label);
  count = count + 1;
});

gs.info("Number of CMDB classes: " + count);
gs.info("End of the script");

~Constantine

mattbarnes
ServiceNow Employee
ServiceNow Employee

For the list of CMDB tables, you can use this link in the documentation.