- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019 11:43 AM
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.
Solved! Go to Solution.
- Labels:
-
Discovery
-
Service Mapping
- 51,418 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2019 11:58 AM
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 🙂
LinkedIn & Twitter
Subscribe to my YouTube Channel
Buy The Witch Doctor's Guide To ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2019 09:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-25-2019 01:01 PM
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-12-2020 09:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2024 04:27 AM - edited 04-09-2024 04:32 AM
For the list of CMDB tables, you can use this link in the documentation.
