Listing all CI Classes (instead of browsing through them)...

marioperron
Tera Contributor

Hi everyone,

  First, let me apologize if my question is in another community forum - I truly picked this one believing it would be "The One".

  Is there any document I could access that simply lists all CI OoB (Out-of-the-Box) Classes (with their "associated hierarchy") and their description?

  We are progressingly moving away from another Service Management Tool at the same time we are "formalizing" a firm governance around Configuration Management and I wanted to provide the Architects and Solution Designers some sort of a "Translation Table" they could refer to when talking about Service Assets we currently manage and the ones we want to manage in the near future.

THANKS in advance!

PS : I know of the CI Class Manager - but I would prefer a "List with description" that I could share to some key players.

1 ACCEPTED SOLUTION

Oleg
Mega Sage

Try to execute the following code in Background Script:

function getChildren (parentSysId, parentLevel) {
    var children = new GlideRecord("sys_db_object");
    children.addQuery("super_class", parentSysId);
    children.orderBy("label");
    children.query();
    var items = [], item;
    while (children.next()) {
        item = {
            sysId: children.getUniqueValue(),
            name: String(children.name),
            label: String(children.label),
            isExtendable: String(children.is_extendable),
            level: parentLevel + 1
        };
        items.push(item);
        gs.print(" ".repeat(item.level*4) + item.label + " [" + item.name + "]");
        if (String(children.is_extendable) === "true") {
            item.children = getChildren(item.sysId, item.level);
        }
        //gs.print(JSON.stringify(item));
    }
    return items;
}
var sysDbObject = new GlideRecord("sys_db_object");
if (sysDbObject.get("name", "cmdb_ci")) {
    var baseItem = {
        sysId: sysDbObject.getUniqueValue(),
        name: String(sysDbObject.name),
        label: String(sysDbObject.label),
        isExtendable: String(sysDbObject.is_extendable),
        level: 0
    };
    //gs.print(JSON.stringify(baseItem));
    gs.print(baseItem.label + " [" + baseItem.name + "]");
    baseItem.children = getChildren(baseItem.sysId, baseItem.level);
    //gs.print(JSON.stringify(baseItem));
}

It's just a simple example of filling structure with CMDB class hierarchy and displaying results in a simple form. You can modify the code based on your wishes. The output of the code on a personal developer instance looks as following:

Configuration Item [cmdb_ci]
    Accessory [cmdb_ci_acc]
    Alias [cmdb_ci_alias]
        DNS Alias [cmdb_ci_dns_alias]
    Application [cmdb_ci_appl]
        .NET Application [cmdb_ci_appl_dot_net]
        Active Directory Service [cmdb_ci_appl_active_directory]
        ActiveMatrix Business Works [cmdb_ci_appl_tibco_matrix]
        ActiveMatrix Business Works Process [cmdb_ci_appl_tibco_matrix_proc]
        Advanced Queue Queue [cmdb_ci_appl_ora_queue]
        Agility Process [cmdb_ci_agility_process]
        Application Server [cmdb_ci_app_server]
            Cloud App Server [cmdb_ci_cloud_appserver]
            Composer [cmdb_ci_app_server_composer]
            Data Power [cmdb_ci_app_server_datapower]
            Data Power Domain [cmdb_ci_app_server_dp_domain]
            Domino [cmdb_ci_app_server_domino]
            GlassFish [cmdb_ci_appl_glassfish]
            GlassFish WAR [cmdb_ci_appl_glassfish_war]
            HP uCMDB [cmdb_ci_app_server_hp_ucmdb]
            IBM Websphere [cmdb_ci_app_server_websphere]
                Websphere ODR LB [cmdb_ci_app_server_ws_odr]
            JavaServer [cmdb_ci_app_server_java]
            JBoss [cmdb_ci_app_server_jboss]
            Jboss module [cmdb_ci_app_server_jb_module]
            Jrun [cmdb_ci_app_server_jrun]
            Jrun WAR [cmdb_ci_app_server_jrun_war]
            Oracle Essbase Server [cmdb_ci_app_server_ora_ess]
            Oracle iAS [cmdb_ci_app_server_ora_ias]
            Oracle iAS Web module [cmdb_ci_app_server_ora_ias_m]
            Remedy HSServer [cmdb_ci_app_server_remedy]
            Tomcat [cmdb_ci_app_server_tomcat]
            Tomcat WAR [cmdb_ci_app_server_tomcat_war]
            Vendavo Application Server [cmdb_ci_app_server_vendavo]
            Weblogic [cmdb_ci_app_server_weblogic]
            Weblogic LB [cmdb_ci_appl_weblogic_lb]
            WeblogicModule [cmdb_ci_app_server_wl_module]
            Websphere EAR [cmdb_ci_app_server_ws_ear]
        BizTalk [cmdb_ci_appl_biztalk]
        BizTalk Orchestration [cmdb_ci_appl_biztalk_orch]
        CA Enterprise Communicator [cmdb_ci_appl_ca]
        CA Identity Manager Provisioning Server [cmdb_ci_appl_ca_id_man]
        CA Introscope Enterprise Manager [cmdb_ci_appl_ca_ent_man]
        Cisco CallManager [cmdb_ci_appl_cisco_call_man]
        Cisco Fibre InterConnect [cmdb_ci_appl_cisco_fibre]
        Citrix Application Icon [cmdb_ci_appl_citrix_app]
        Citrix Collector [cmdb_ci_appl_citrix_collector]
        Citrix License server [cmdb_ci_appl_license_server]
        Citrix XenAPP or Presentation Server [cmdb_ci_appl_citrix_xenapp]
        Cloud Messaging Service [cmdb_ci_cloud_messaging_service]
        Connect-It Service [cmdb_ci_appl_connectit]
        Control-M [cmdb_ci_appl_controlm]
        Database Instance [cmdb_ci_db_instance]
            Cloud DataBase [cmdb_ci_cloud_database]
            DB2 Instance [cmdb_ci_db_db2_instance]
            HBase Instance [cmdb_ci_db_hbase_instance]
            MongoDB Instance [cmdb_ci_db_mongodb_instance]
            MS SQL DataBase [cmdb_ci_db_mssql_database]
            MS SQL Server [cmdb_ci_db_mssql_server]
            MSFT SQL Instance [cmdb_ci_db_mssql_instance]
            MySQL Instance [cmdb_ci_db_mysql_instance]
            Oracle Instance [cmdb_ci_db_ora_instance]
            PostgreSQL Instance [cmdb_ci_db_postgresql_instance]
            SQL Server Analysis Services [cmdb_ci_db_mssql_analysis]
            SQL Server Integration Services [cmdb_ci_db_mssql_integration]
            SQL Server Reporting Services [cmdb_ci_db_mssql_reporting]
            Sybase Instance [cmdb_ci_db_syb_instance]
        Delivery Controler [cmdb_ci_appl_delivery_controler]
        Documentum Brava Job Processor [cmdb_ci_appl_doc_brava_proc]
        Documentum Brava License Server [cmdb_ci_appl_doc_brava_server]
        Documentum Broker [cmdb_ci_appl_doc_docbroker]
        Documentum DocBase [cmdb_ci_appl_doc_docbase]
        Dynamic CRM Component [cmdb_ci_appl_ms_dynamic_crm]
        EMS Queue [cmdb_ci_appl_tibco_queue]
        epic agent [cmdb_ci_epic_agent]
        epic cache [cmdb_ci_epic_cache]
        epicd app server [cmdb_ci_epicd_app_server]
        Exchange Service Component [cmdb_ci_exchange_service_component]
            Exchange Client Access Server [cmdb_ci_exchange_cas]
            Exchange Edge Transport Server [cmdb_ci_exchange_edge_transport_server]
            Exchange Hub Transport Server [cmdb_ci_exchange_hub_transport_server]
            Exchange MailBox [cmdb_ci_exchange_mailbox]
            Exchange Mailbox Server [cmdb_ci_exchange_mailbox_server]
            ExchangeBackEndServer [cmdb_ci_exchange_backend]
            ExchangeFrontEndServer [cmdb_ci_exchange_frontend]
            ExchangeHub [cmdb_ci_exchange_hub]
        Fast Search [cmdb_ci_appl_fastsearch]
        Generic Application [cmdb_ci_appl_generic]
        Groundwork [cmdb_ci_appl_groundwork]
        HP Operations Manager [cmdb_ci_appl_hp_operations]
        HP Quality Center [cmdb_ci_appl_hp_qc]
        HP Service Manager [cmdb_ci_appl_hp_service]
        HP SM Index Server [cmdb_ci_appl_hp_index]
        HP SM KnowledgeBase [cmdb_ci_appl_hp_sm_kb]
        IBM CICS [cmdb_ci_appl_ibm_cics]
        IBM CTG [cmdb_ci_appl_ibm_ctg]
        IBM WebSphere Message Broker [cmdb_ci_appl_ibm_wmb]
        IBM WebSphere MQ [cmdb_ci_appl_ibm_wmq]
        IBM WebSphere MQ Queue [cmdb_ci_appl_ibm_wmq_queue]
        IBM WMB Http Listener [cmdb_ci_appl_ibm_wmb_listener]
        Infrastructure Service [cmdb_ci_infra_service]
            AD Domain [cmdb_ci_ad_domain]
            AD Forest [cmdb_ci_directory_ad_forest]
            CA eTrust Directory Server [cmdb_ci_appl_ca_dir_server]
            Directory Server [cmdb_ci_directory_server]
                Active Directory Domain Controller [cmdb_ci_ad_controller]
                Cloud Directory [cmdb_ci_cloud_directory]
            Email Server [cmdb_ci_email_server]
            Enterprise Vault [cmdb_ci_email_server_ent_vault]
            FTP Server [cmdb_ci_ftp_server]
            HA Proxy [cmdb_ci_directory_ha]
            IIFP [cmdb_ci_directory_iifp]
            IIS Virtual Directory [cmdb_ci_iisdirectory]
            Inetinfo service [cmdb_ci_inetinfo]
            IP Server [cmdb_ci_ip_server]
            JES [cmdb_ci_email_server_jes]
            LDAP Service [cmdb_ci_infra_service_ldap]
                LDAP DB [cmdb_ci_directory_ldap]
            Policy Server [cmdb_ci_dir_policy_server]
            Site Minder [cmdb_ci_dir_site_minder_server]
            Sun Directory Proxy Server [cmdb_ci_sun_dir_proxy_server]
            Sun LDAP Server [cmdb_ci_sun_ldap_dir_server]
            Web Server [cmdb_ci_web_server]
                Apache Web Server [cmdb_ci_apache_web_server]
                Cloud WebServer [cmdb_ci_cloud_webserver]
                Iplanet Web Server [cmdb_ci_iplanet_web_server]
                Microsoft iis Web Server [cmdb_ci_microsoft_iis_web_server]
                Nginx Web Server [cmdb_ci_nginx_web_server]
        Inter connect [cmdb_ci_inter_connect]
        Interconnect Instance [cmdb_ci_interconnect_instance]
        ITAM Asset Center [cmdb_ci_appl_itam]
        Load Balancer Application [cmdb_ci_lb_appl]
            HAProxy Load Balancer [cmdb_ci_lb_haproxy]
            Modjk Load Balancer [cmdb_ci_lb_modjk]
            ModProxy Load Balancer [cmdb_ci_lb_modproxy]
            Nginx Load Balancer [cmdb_ci_lb_nginx]
        Lotus Domino HTTP Server [cmdb_ci_web_domino]
        Management Server [cmdb_ci_config_automation_server]
            Puppet Master [cmdb_ci_puppet_master]
        Mongo Config Server [cmdb_ci_appl_mongo_config_serv]
        Mongos Server [cmdb_ci_appl_mongos]
        MSMQ [cmdb_ci_appl_msmq]
        MySQLClusterDataNode [cmdb_ci_db_mysql_clusternode]
        MySQLClusterMGMNode [cmdb_ci_db_mysql_clustermgnode]
        Operating-system-level Virtualization Engine [cmdb_ci_oslv_engine]
            Docker Engine [cmdb_ci_docker_engine]
        Oracle App TNS Service [cmdb_ci_appl_ora_tns]
        Oracle Concurrent Server [cmdb_ci_appl_ora_conc]
        Oracle Database Listener [cmdb_ci_db_ora_listener]
        Oracle Discoverer Engine [cmdb_ci_appl_ora_disc]
        Oracle Discoverer UI [cmdb_ci_appl_ora_disc_ui]
        Oracle ESB [cmdb_ci_appl_ora_ebs]
        Oracle Forms Engine [cmdb_ci_appl_ora_forms]
        Oracle Forms UI [cmdb_ci_appl_ora_forms_ui]
        Oracle Fulfillment Server [cmdb_ci_appl_ora_fs]
        Oracle HTTP Server [cmdb_ci_appl_ora_http]
        Oracle Metric Client [cmdb_ci_appl_ora_metric_client]
        Oracle Metric Server [cmdb_ci_appl_ora_metric_svr]
        Oracle Notification Server [cmdb_ci_appl_ora_notif_svr]
        Oracle OACORE Server [cmdb_ci_appl_ora_oacore]
        Oracle OAFM Server [cmdb_ci_appl_ora_oafm]
        Oracle Process Manager [cmdb_ci_appl_ora_pm]
        Oracle Report Server [cmdb_ci_appl_ora_report]
        Oracle TNS Listener Engine [cmdb_ci_appl_ora_tnslsnr]
        Peoplesoft Application Server [cmdb_ci_appl_peoplesoft]
        RabbitMQ [cmdb_ci_appl_rabbitmq]
        RabbitMQ Cluster [cmdb_ci_appl_rabbitmq_cluster]
        RabbitMQ Queue [cmdb_ci_appl_rabbitmq_queue]
        SAP Application [cmdb_ci_appl_sap]
            SAP ASCS Application [cmdb_ci_appl_sap_ascs]
            SAP CI Application [cmdb_ci_appl_sap_ci]
            SAP DI Application [cmdb_ci_appl_sap_di]
            SAP ERS Application [cmdb_ci_appl_sap_ers]
            SAP JC Application [cmdb_ci_appl_sap_jc]
            SAP SCS Application [cmdb_ci_appl_sap_scs]
        SAP Application Server [cmdb_ci_appl_sap_server]
        SAP BO BOXIScheduleRouter [cmdb_ci_appl_sap_bo_scheduler]
        SAP Business Objects [cmdb_ci_appl_sap_bus_obj]
        SAP Business Objects CMS server [cmdb_ci_appl_sap_bo]
        SAP Hana Db [cmdb_ci_appl_sap_hana_db]
        SAP System [cmdb_ci_appl_sap_system]
        Sendmail [cmdb_ci_appl_sendmail]
        ServiceNow Application [cmdb_ci_appl_now_app]
            ServiceNow Application Component [cmdb_ci_appl_now_app_comp]
        SharePoint [cmdb_ci_appl_sharepoint]
        SharePoint Service [cmdb_ci_appl_sp_service]
        Simulation [cmdb_ci_app_simulation]
        Simulation Inclusion [cmdb_ci_app_simulation_inc]
        SQL Server Integration Services Job [cmdb_ci_db_mssql_int_job]
        Tibco Adapter [cmdb_ci_appl_tibco_adapter]
        Tibco Enterprise Message Service [cmdb_ci_appl_tibco_message]
        Tibco Hawk [cmdb_ci_appl_tibco_hawk]
        Tuxedo [cmdb_ci_appl_tuxedo]
        Tuxedo Portal [cmdb_ci_appl_tuxedo_portal]
        Vignette Content Management Server [cmdb_ci_appl_vign_content_svr]
        Vignette Search Starter [cmdb_ci_appl_vignette_search]
        Vignette Server [cmdb_ci_appl_vignette_server]
        Virtual Machine HyperVisor [cmdb_ci_vm]
            KVM [cmdb_ci_kvm]
            Parallels [cmdb_ci_vm_parallels]
            VMware [cmdb_ci_vm_vmware]
            Zones [cmdb_ci_vm_zones]
        VMware vCenter Instance [cmdb_ci_vcenter]
        WBEM Service [cmdb_ci_wbem_service]
        Web Application [cmdb_ci_web_application]
        Web Service [cmdb_ci_web_service]
        Web Site [cmdb_ci_web_site]
        Weblogic JMS Queue [cmdb_ci_appl_ora_jms_queue]
        Weblogic JMS Server [cmdb_ci_appl_weblogic_jms]
        Weblogic Module Server [cmdb_ci_appl_weblogicmodule]
        Webseal [cmdb_ci_app_server_webseal]
        Websphere Portal [cmdb_ci_appl_websphere_portal]
        Windows Domain Controller [cmdb_ci_win_domain_controller]
        WMB Flow [cmdb_ci_appl_wmb]
    Application Cluster [cmdb_ci_application_cluster]
    Batch Job [cmdb_ci_batch_job]
    Business Application [cmdb_ci_business_app]
    Business Capability [cmdb_ci_business_capability]
    Business Process [cmdb_ci_business_process]
    Business Service [cmdb_ci_service]
        Business Service Group [cmdb_ci_service_group]
        Monitored Service [cmdb_ci_service_auto]
            Application Service [cmdb_ci_service_discovered]
    CIM Profiles [cmdb_ci_cim_profile]
    Circuit [cmdb_ci_circuit]
    Cloud Key Pair [cmdb_ci_cloud_key_pair]
    Cloud Mgmt Subnet [cmdb_ci_subnet]
    Cloud Resource Base [cmdb_ci_cloud_resource_base]
    Cluster [cmdb_ci_cluster]
        Storage Cluster [cmdb_ci_storage_cluster]
        UNIX Cluster [cmdb_ci_unix_cluster]
        Windows Cluster [cmdb_ci_win_cluster]
    Cluster Node [cmdb_ci_cluster_node]
        Storage Cluster Node [cmdb_ci_storage_cluster_node]
        UNIX Cluster Node [cmdb_ci_unix_cluster_node]
        Windows Cluster Node [cmdb_ci_win_cluster_node]
    Cluster Resource [cmdb_ci_cluster_resource]
        UNIX Cluster Resource [cmdb_ci_unix_cluster_resource]
        Windows Cluster Resource [cmdb_ci_win_cluster_resource]
    Cluster Virtual IP [cmdb_ci_cluster_vip]
    Communication Device [cmdb_ci_comm]
    Computer Peripheral [cmdb_ci_peripheral]
    Computer Room [cmdb_ci_computer_room]
    Computer Room AC [cmdb_ci_crac]
    Configuration file [cmdb_ci_config_file]
        Tracked Configuration file [cmdb_ci_config_file_tracked]
    Data Center [cmdb_ci_datacenter]
    Data Center Zone [cmdb_ci_zone]
    Database [cmdb_ci_database]
    Database Catalog [cmdb_ci_db_catalog]
        DB2 Catalog [cmdb_ci_db_db2_catalog]
        MSFT SQL Catalog [cmdb_ci_db_mssql_catalog]
        MySQL Catalog [cmdb_ci_db_mysql_catalog]
        Oracle Catalog [cmdb_ci_db_ora_catalog]
        Sybase Catalog [cmdb_ci_db_syb_catalog]
    Datastore Disk [cmdb_ci_vcenter_datastore_disk]
    Disk Partition [cmdb_ci_disk_partition]
    Display Hardware [cmdb_ci_display_hardware]
    DNS Name [cmdb_ci_dns_name]
    Endpoint [cmdb_ci_endpoint]
        ACL Endpoint [cmdb_ci_endpoint_acl]
        Active Directory Domain to Domain Controllers Endpoint [cmdb_ci_endpoint_ad_domain]
        Active Directory Forest Endpoint [cmdb_ci_endpoint_ad_forest]
        Advanced Queue Endpoint [cmdb_ci_endpoint_aq]
        Agility Endpoint [cmdb_ci_endpoint_agility]
        AJP Endpoint [cmdb_ci_endpoint_ajp]
        Application To Storage Endpoint [cmdb_ci_endpoint_app_storage]
        BizTalk Connection Endpoint [cmdb_ci_endpoint_biztalk]
        Block Endpoint [cmdb_ci_endpoint_block]
        Business Objects CMS Server Endpoint [cmdb_ci_endpoint_obj_cms_srv]
        Citrix Delivery Controller Endpoint [cmdb_ci_endpoint_dliver_cnrl]
        Compute Security Endpoint [cmdb_ci_endpoint_comp_security]
        CRM Component Endpoint [cmdb_ci_endpoint_crm]
        CTG Endpoint [cmdb_ci_endpoint_ctg]
        Customer Gateway Endpoint [cmdb_ci_endpoint_cust_gateway]
        DB2 UDB Endpoint [cmdb_ci_endpoint_db2sql]
        DCTM Connection to broker Endpoint [cmdb_ci_endpoint_dctm_broker]
        DCTM Index Agent Connection Endpoint [cmdb_ci_endpoint_dctm_index]
        DCTM Job Processor Endpoint [cmdb_ci_endpoint_dctm_job]
        DocBase Connection Endpoint [cmdb_ci_endpoint_docbase]
        EJB Endpoint [cmdb_ci_endpoint_ejb]
        EMS Endpoint [cmdb_ci_endpoint_ems]
        EMS JNDI Endpoint [cmdb_ci_endpoint_ems_jndi]
        Enterprise Vault Endpoint [cmdb_ci_endpoint_ent_vault]
        Epicd Endpoint [cmdb_ci_endpoint_epicd]
        Exchange 2013 Endpoint [cmdb_ci_endpoint_exchange]
        External Network Endpoint [cmdb_ci_endpoint_extnetwork]
        F5 Mirror Endpoint [cmdb_ci_endpoint_f5]
        Fast Search Endpoint [cmdb_ci_endpoint_fastsearch]
        FromCluster_to_RabbitMQ Endpoint [cmdb_ci_endpoint_fromcluster_t]
        FTP Endpoint [cmdb_ci_endpoint_ftp]
        HPOM Endpoint [cmdb_ci_endpoint_hpom]
        HTTP Listener to WMB Dependency Endpoint [cmdb_ci_endpoint_listener_wmb]
        HTTP(S) Endpoint [cmdb_ci_endpoint_http]
        IIFP Endpoint [cmdb_ci_endpoint_iifp]
        IMAP Endpoint [cmdb_ci_endpoint_imap]
        Inclusion Endpoint [cmdb_ci_endpoint_inclusion]
            AD Service inc [cmdb_ci_endpoint_ad_service_in]
            App Icon Inc [cmdb_ci_endpoint_app]
            AQ Queue [cmdb_ci_endpoint_aq_queue]
            BizTalk Inclusion [cmdb_ci_endpoint_biztalk_orch]
            Citrix StoreFront App Icon Inc [cmdb_ci_endpoint_xenapp_citrx]
            Cloud DB Instance Inclusion [cmdb_ci_endpoint_cloud_db_instance]
            EBS Inc Modules [cmdb_ci_endpoint_ebs]
            EMS Queue EP [cmdb_ci_endpoint_ems_queue]
            GlassFish WAR Inc [cmdb_ci_endpoint_glassfish_war]
            IIS Website [cmdb_ci_endpoint_iis]
            J2EE EAR [cmdb_ci_endpoint_j2ee_ear]
            Jboss Module Inclusion [cmdb_ci_endpoint_jboss]
            JMS Queue [cmdb_ci_endpoint_jms_queue]
            Jrun WAR Inc [cmdb_ci_endpoint_jrun]
            LDAP DB EP [cmdb_ci_endpoint_ldap_db]
            MQ Queue [cmdb_ci_endpoint_mq_queue]
            MS SQL db inclusion [cmdb_ci_endpoint_ms_sql]
            Oracle App TNS Service EP [cmdb_ci_endpoint_oracle_tns]
            Oracle DB schema inclusion [cmdb_ci_endpoint_oracle_db_schema]
            Oracle iAS Module INC [cmdb_ci_endpoint_oracle_ias]
            RabbitMQ Queue Endpoint [cmdb_ci_endpoint_inclusion_rabbitmq_queue]
            SAP BO Servers [cmdb_ci_endpoint_sap_bo_servers]
            SharePoint Service EP [cmdb_ci_endpoint_sharepoint_service]
            Simulation Inclusion Endpoint [cmdb_ci_endpoint_sim_inc]
            SSIS job [cmdb_ci_endpoint_ssis_job]
            StoreFront Components [cmdb_ci_endpoint_storefront_comp]
            Tibco BW process [cmdb_ci_endpoint_tibco_bw_proc]
            Tomcat WAR Inclusion [cmdb_ci_endpoint_tomcat_war]
            Weblogic Module [cmdb_ci_endpoint_weblogic_module]
            WMB Flow EP [cmdb_ci_endpoint_wmb_flow]
            XenApp or Presentation Server [cmdb_ci_endpoint_storf]
        Inter connect Endpoint [cmdb_ci_endpoint_inter_connect]
        Internet Gateway Endpoint [cmdb_ci_endpoint_intgateway]
        ISCSI Endpoint [cmdb_ci_endpoint_iscsi]
        ITAM Asset Center Endpoint [cmdb_ci_endpoint_itam]
        JMS Flow Endpoint [cmdb_ci_endpoint_jms_flow]
        JMS Server Endpoint [cmdb_ci_endpoint_jms_server]
        LDAP Endpoint [cmdb_ci_endpoint_ldap]
        Manual Endpoint [cmdb_ci_endpoint_manual]
        MAPI Endpoint [cmdb_ci_endpoint_mapi]
        MAPI-HUB Endpoint [cmdb_ci_endpoint_mapi_hub]
        MQ Cross-memory Endpoint [cmdb_ci_endpoint_mq_mem]
        MQ Endpoint [cmdb_ci_endpoint_mq]
        MQ Flow Endpoint [cmdb_ci_endpoint_mq_flow]
        MS SQL Server Endpoint [cmdb_ci_endpoint_ms_sql_server]
        MSMQ Flow Endpoint [cmdb_ci_endpoint_msmq]
        MySQL Cluster Data Node Endpoint [cmdb_ci_endpoint_mysql_cl_dn]
        MySQL Cluster MGM Endpoint [cmdb_ci_endpoint_mysql_cl_mg]
        MySQL Server Endpoint [cmdb_ci_endpoint_mysql_server]
        MySQL Slave Server Endpoint [cmdb_ci_endpoint_mysql_slave]
        NAT Endpoint [cmdb_ci_endpoint_nat]
        Network Endpoint [cmdb_ci_endpoint_network]
        NFS Endpoint [cmdb_ci_endpoint_nfs]
        NNTP Endpoint [cmdb_ci_endpoint_nntp]
        Oracle DB Endpoint [cmdb_ci_endpoint_oracle_db]
        Oracle ESB Connection Endpoint [cmdb_ci_endpoint_oracle_esb]
        Oracle RAC DB Endpoint [cmdb_ci_endpoint_oracle_rac]
        Outbound Cluster Endpoint [cmdb_ci_endpoint_ob_cluster]
        Peoplesoft Application Server Endpoint [cmdb_ci_endpoint_peoplesoft]
        POP3 Endpoint [cmdb_ci_endpoint_pop3]
        PostgreSQL DB Endpoint [cmdb_ci_endpoint_postgresql]
        RabbitMQ Endpoint [cmdb_ci_endpoint_rabbitmq]
        Remote TCP Cross-memory Endpoint [cmdb_ci_endpoint_remote_tcp]
        RFC Endpoint [cmdb_ci_endpoint_rfc]
        Route Table Endpoint [cmdb_ci_endpoint_route_table]
        Router Endpoint [cmdb_ci_endpoint_router]
        SAP APP Endpoint [cmdb_ci_endpoint_sap_app]
        SAP Application Server Endpoint [cmdb_ci_endpoint_sap]
        SAP BO Servers Endpoint [cmdb_ci_endpoint_sap_bo_srv]
        SAP HANA DB Endpoint [cmdb_ci_endpoint_sap_db]
        Sharepoint connection Endpoint [cmdb_ci_endpoint_sp_connection]
        Simulation Endpoint [cmdb_ci_endpoint_sim_flow]
        SMTP Endpoint [cmdb_ci_endpoint_smtp]
        SSAS Endpoint [cmdb_ci_endpoint_ssas]
        SSAS for MSSQL Endpoint [cmdb_ci_endpoint_ssas_mssql]
        SSIS Endpoint [cmdb_ci_endpoint_ssis]
        SSIS file Endpoint [cmdb_ci_endpoint_ssis_file]
        SSIS for MSSQL Endpoint [cmdb_ci_endpoint_ssis_mssql]
        Storage FC Connectivity Endpoint [cmdb_ci_endpoint_storage_fc]
        StoreFront Components Endpoint [cmdb_ci_endpoint_storefront_components]
        Subnet Endpoint [cmdb_ci_endpoint_subnet]
        Sybase Endpoint [cmdb_ci_endpoint_sybase]
        TCP Endpoint [cmdb_ci_endpoint_tcp]
        Tibco BW Endpoint [cmdb_ci_endpoint_tibco_bw]
        Tibco Conf File Endpoint [cmdb_ci_endpoint_tbco_confile]
        Tibco File Listener Endpoint [cmdb_ci_endpoint_tibco_file]
        Tibco Hawk Endpoint [cmdb_ci_endpoint_tibco_hawk]
        Virtual Private Gateway Endpoint [cmdb_ci_endpoint_vpg]
        VirtualMachine to ESX Storage Endpoint [cmdb_ci_endpoint_vm_esx]
        VNIC Endpoint [cmdb_ci_endpoint_vnic]
        WMB Dependency Endpoint [cmdb_ci_endpoint_wmb_depend]
        XenApp or Presentation Server Components Endpoint [cmdb_ci_endpoint_xenapp_comp]
        XenApp or Presentation Server Endpoint [cmdb_ci_endpoint_xenapp]
    Environment [cmdb_ci_environment]
    Facility Hardware [cmdb_ci_facility_hardware]
        Buildings [cmdb_ci_building_facility]
        Fuel Tank [cmdb_ci_fuel_tank]
        HVAC Equipment [cmdb_ci_hvac]
        Power Equipment [cmdb_ci_power_eq]
            Automatic Transfer Switch [cmdb_ci_ats_power_eq]
            Direct Current Plant Battery Bank [cmdb_ci_dc_plant_battery_pwr]
            Direct Current Plant Equipment [cmdb_ci_dc_plant_eq_power_eq]
            Power Generator [cmdb_ci_generator_power_eq]
            Surger Protection Equipment [cmdb_ci_surge_power_eq]
            Uninterruptible Power Supply [cmdb_ci_ups_power_eq]
        Tower Equipment [cmdb_ci_tower_eq]
            Tower [cmdb_ci_tower_tower_eq]
            Tower Beacon [cmdb_ci_beacon_tower_eq]
            Tower Light Controller [cmdb_ci_twr_light_cnt_tower_eq]
            Tower Lights [cmdb_ci_tower_light_tower_eq]
    Fibre Channel Port [cmdb_ci_fc_port]
        Storage Port [cmdb_ci_storage_port]
    Group [cmdb_ci_group]
    Hardware [cmdb_ci_hardware]
        Cisco UCS Chassis [cmdb_ci_ucs_chassis]
        Cisco UCS Equipment [cmdb_ci_ucs_equipment]
        Computer [cmdb_ci_computer]
            Cisco UCS Blade [cmdb_ci_ucs_blade]
            Cisco UCS Rack Mount Unit [cmdb_ci_ucs_rack_unit]
            Mainframe Hardware [cmdb_ci_mainframe_hardware]
            Personal Computer [cmdb_ci_pc_hardware]
            Server [cmdb_ci_server]
                CIM Server [cmdb_ci_cim_server]
                Data Power Hosting Server [cmdb_ci_datapower_server]
                IBM Mainframe [cmdb_ci_mainframe]
                IBM Mainframe LPAR [cmdb_ci_mainframe_lpar]
                IBM zOS server [cmdb_ci_ibm_zos_server]
                ISAM Server [cmdb_ci_isam_server]
                Linux Server [cmdb_ci_linux_server]
                Load Balancer [cmdb_ci_lb]
                    A10 Load Balancer [cmdb_ci_lb_a10]
                    ACE [cmdb_ci_lb_ace]
                    Alteon [cmdb_ci_lb_alteon]
                    Cisco CSM [cmdb_ci_lb_cisco_csm]
                    Cisco CSS [cmdb_ci_lb_cisco_css]
                    Cisco GSS [cmdb_ci_lb_cisco_gss]
                    Citrix Netscaler [cmdb_ci_lb_netscaler]
                    F5 BIG-IP [cmdb_ci_lb_bigip]
                    F5 BigIP GTM [cmdb_ci_lb_f5_gtm]
                    F5 BigIP LTM [cmdb_ci_lb_f5_ltm]
                    ISA Server [cmdb_ci_lb_isa]
                    Network Load Balancer [cmdb_ci_lb_network]
                    Radware Load Balancer [cmdb_ci_lb_radware]
                Netware Server [cmdb_ci_netware_server]
                OS/X Server [cmdb_ci_osx_server]
                Server Hardware [cmdb_ci_server_hardware]
                    Network Appliance Hardware [cmdb_ci_net_app_server]
                    Server Chassis [cmdb_ci_chassis_server]
                    Server Tape Unit [cmdb_ci_tape_server]
                Storage Node Element [cmdb_ci_storage_node_element]
                Storage Server [cmdb_ci_storage_server]
                UNIX Server [cmdb_ci_unix_server]
                    AIX Server [cmdb_ci_aix_server]
                    HPUX Server [cmdb_ci_hpux_server]
                    Solaris Server [cmdb_ci_solaris_server]
                Virtualization Server [cmdb_ci_virtualization_server]
                    Hyper-V Server [cmdb_ci_hyper_v_server]
                    VMware vCenter Server Object [cmdb_ci_vcenter_server_obj]
                        ESX Server [cmdb_ci_esx_server]
                Windows Server [cmdb_ci_win_server]
            Storage Switch [cmdb_ci_storage_switch]
        Mass Storage Device [cmdb_ci_msd]
        Network Gear [cmdb_ci_netgear]
            CSU/DSU [cmdb_ci_csu_dsu_network]
            FDDI Cards [cmdb_ci_fddi_network]
            Firewall Hardware [cmdb_ci_firewall_network]
            Hub Hardware [cmdb_ci_hub_network]
            Intrusion Detection System [cmdb_ci_ids_network]
            IP Firewall [cmdb_ci_ip_firewall]
            IP Router [cmdb_ci_ip_router]
            IP Switch [cmdb_ci_ip_switch]
            Modem Hardware [cmdb_ci_modem_network]
            WAN Accelerator [cmdb_ci_wan_accel_network]
            Wireless Access Point [cmdb_ci_wap_network]
        Out-of-Band Device [cmdb_ci_outofband_device]
        PDU [cmdb_ci_pdu]
        Printer [cmdb_ci_printer]
            Multi-function Printer [cmdb_ci_mfp_printer]
            Personal Printer [cmdb_ci_personal_printer]
        UPS [cmdb_ci_ups]
    Imaging Hardware [cmdb_ci_imaging_hardware]
        Scanner [cmdb_ci_scanner]
    IP Address [cmdb_ci_ip_address]
    IP Device [cmdb_ci_ip_device]
    IP Network [cmdb_ci_ip_network]
    IP Phone [cmdb_ci_ip_phone]
    IP Service Instance [cmdb_ci_ip_service]
        UNIX Daemon [cmdb_ci_unix_daemon]
        Windows Service [cmdb_ci_windows_service]
    Load Balancer Interface [cmdb_ci_lb_interface]
    Load Balancer Pool [cmdb_ci_lb_pool]
    Load Balancer Pool Member [cmdb_ci_lb_pool_member]
    Load Balancer Service [cmdb_ci_lb_service]
    Load Balancer VLAN [cmdb_ci_lb_vlan]
    Logical Partition [cmdb_ci_lpar]
    Memory Module [cmdb_ci_memory_module]
    Monitoring Equipment [cmdb_ci_monitoring_hardware]
    Network Adapter [cmdb_ci_network_adapter]
        Cloud Mgmt Network Interface [cmdb_ci_nic]
            VMware Network Adapter [cmdb_ci_vmware_nic]
    Network Appliance Hostname [cmdb_ci_net_app_host]
    Network Hostname [cmdb_ci_network_host]
    Network Infrastructure Item [dscy_net_base]
        Exit Interface Routing Rule [dscy_route_interface]
        Next Hop Routing Rule [dscy_route_next_hop]
        Router Interface [dscy_router_interface]
        Switch Forwarding Rule [dscy_swtch_fwd_rule]
        Switch Partition [dscy_swtch_partition]
        Switchport [dscy_switchport]
        Wire [dscy_net_wire]
    Network Traffic [cmdb_ci_net_traffic]
    Operating-system-level Virtualization Container [cmdb_ci_oslv_container]
        Docker Container [cmdb_ci_docker_container]
    Operating-system-level Virtualization Image [cmdb_ci_oslv_image]
        Docker Image [cmdb_ci_docker_image]
    Operating-system-level Virtualization Image Tag [cmdb_ci_oslv_image_tag]
        Docker Image Tag [cmdb_ci_docker_image_tag]
    Operating-system-level Virtualization Local Image [cmdb_ci_oslv_local_image]
        Docker Local Image [cmdb_ci_docker_local_image]
    Outlet [cmdb_ci_pdu_outlet]
    Package [cmdb_ci_os_packages]
    Patch [cmdb_ci_patches]
    Port [cmdb_ci_port]
    Print Queue [cmdb_ci_print_queue]
    Printing Hardware [cmdb_ci_printing_hardware]
        Plotter [cmdb_ci_plotter]
    Qualifier [cmdb_ci_qualifier]
        Boundary Connection Qualifier [cmdb_ci_qualifier_boundary_connection]
        Entrypoint Marker [cmdb_ci_qualifier_entrypoint]
        External Connection Qualifier [cmdb_ci_qualifier_external_connection]
        Hidden Connection Qualifier [cmdb_ci_qualifier_hidden_conn]
        Manual CI Endpoint Qualifier [cmdb_ci_qualifier_manual_ci_endpoint]
        Manual Connection Qualifier [cmdb_ci_qualifier_manual_connection]
    Rack [cmdb_ci_rack]
    SAN Connection [cmdb_ci_san_connection]
    SAN Endpoint [cmdb_ci_san_endpoint]
    SAN Fabric [cmdb_ci_san_fabric]
    SAN Zone [cmdb_ci_san_zone]
    SAN Zone Alias [cmdb_ci_san_zone_alias]
    SAN Zone Alias Member [cmdb_ci_san_zone_alias_member]
    SAN Zone Member [cmdb_ci_san_zone_member]
    SAN Zone Set [cmdb_ci_san_zone_set]
    Software [cmdb_ci_spkg]
        Application Software [cmdb_ci_application_software]
        Desktop Software [cmdb_ci_desktop_software]
        Infrastructure Software [cmdb_ci_inf_software]
    Storage Area Network [cmdb_ci_san]
    Storage Controller [cmdb_ci_storage_controller]
    Storage Device [cmdb_ci_storage_device]
        Disk [cmdb_ci_disk]
            Storage Disk [cmdb_ci_storage_disk]
        SAN Disk [cmdb_ci_san_disk]
            Fibre Channel Disk [cmdb_ci_fc_disk]
            iSCSI Disk [cmdb_ci_iscsi_disk]
    Storage Export [cmdb_ci_storage_export]
        SAN Export [cmdb_ci_san_export]
            Fibre Channel Export [cmdb_ci_fc_export]
            iSCSI Export [cmdb_ci_iscsi_export]
    Storage File Share [cmdb_ci_storage_fileshare]
    Storage HBA [cmdb_ci_storage_hba]
    Storage Pool [cmdb_ci_storage_pool]
        LVM Pool [cmdb_ci_lvm_pool]
        Multipath IO Pool [cmdb_ci_mpio_pool]
        Multipath IO Pool Group [cmdb_ci_mpio_pool_group]
        RAID [cmdb_ci_raid]
        Veritas Disk [cmdb_ci_veritas_disk]
        Veritas Plex [cmdb_ci_veritas_plex]
        Veritas Volume [cmdb_ci_veritas_volume]
    Storage Pool Member [cmdb_ci_storage_pool_member]
        LVM Pool Member [cmdb_ci_lvm_pool_member]
        Multipath IO Pool Path [cmdb_ci_mpio_pool_path]
        RAID Member [cmdb_ci_raid_member]
        Veritas Subdisk [cmdb_ci_veritas_subdisk]
    Storage Volume [cmdb_ci_storage_volume]
        File System [cmdb_ci_file_system]
            NAS File System [cmdb_ci_nas_file_system]
            NFS File system [cmdb_ci_file_system_nfs]
            SMB File system [cmdb_ci_file_system_smb]
        Netapp Volume [cmdb_ci_netapp_volume]
    Tomcat Connector [cmdb_ci_tomcat_connector]
    Translation Rule [cmdb_ci_translation_rule]
    UPS Alarm [cmdb_ci_ups_alarm]
    UPS Bypass [cmdb_ci_ups_bypass]
    UPS Input [cmdb_ci_ups_input]
    UPS Output [cmdb_ci_ups_output]
    Veritas Disk Group [cmdb_ci_veritas_disk_group]
    Virtual Machine Object [cmdb_ci_vm_object]
        Apic Host [cmdb_ci_apic_host]
        Apic Tenant [cmdb_ci_apic_tenant]
        Application Network Profile [cmdb_ci_app_network_profile]
        Availability Set [cmdb_ci_availability_set]
        Availability Zone [cmdb_ci_availability_zone]
        AWS Account [cmdb_ci_aws_account]
        Azure Subscription [cmdb_ci_azure_subscription]
        Bridge Domain [cmdb_ci_bridge_domain]
        Bundled Resources [cmdb_ci_bundled_resources]
        Cloud IP Address [cmdb_ci_cloud_ip_address]
        Cloud LB IPAddress [cmdb_ci_cloud_lb_ipaddress]
        Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
        Cloud Monitor Alarm [cmdb_ci_cloud_monitor_alarm]
        Cloud Monitor Notification [cmdb_ci_cloud_monitor_notification]
        Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
        Cloud Storage Account [cmdb_ci_cloud_storage_account]
        Cloud Subnet [cmdb_ci_cloud_subnet]
        Cloud Topic [cmdb_ci_cloud_topic]
        Compute Security Group [cmdb_ci_compute_security_group]
        Compute Security Group Template [cmdb_ci_security_grp_template]
        Customer Gateway [cmdb_ci_customer_gateway]
        Customization Spec [cmdb_ci_customization_spec]
        Hardware Type [cmdb_ci_compute_template]
        Hyper-V Object [cmdb_ci_hyper_v_object]
            Hyper-V Cluster [cmdb_ci_hyper_v_cluster]
            Hyper-V Resource Pool [cmdb_ci_hyper_v_resource_pool]
            Hyper-V Resource Pool Component [cmdb_ci_hyper_v_rpool_comp]
            Hyper-V Virtual Network [cmdb_ci_hyper_v_network]
        Image [cmdb_ci_os_template]
            Virtual Machine Template [cmdb_ci_vm_template]
                VMware Virtual Machine Template [cmdb_ci_vmware_template]
        Installed Bundles [cmdb_ci_installed_bundles]
        Internet Gateway [cmdb_ci_internet_gateway]
        KVM Object [cmdb_ci_kvm_object]
            KVM Storage Pool [cmdb_ci_kvm_storage_pool]
            KVM Storage Volume [cmdb_ci_kvm_storage_volume]
            Network [cmdb_ci_kvm_network]
        LB Backend Server [cmdb_ci_lb_backend_server]
        LB Cookie Stickiness Policy [cmdb_ci_lb_ckstickinesspolicy]
        LIF [cmdb_ci_lif]
        Load Balancer Listener [cmdb_ci_lb_listener]
        Load Balancer Template [cmdb_ci_lb_template]
        Mirror Template [cmdb_ci_mirror_template]
        NAS Storage [cmdb_ci_nas_storage]
        NAT Gateway [cmdb_ci_nat_gateway]
        Netapp CDOT [cmdb_ci_netapp_cdot]
        Netapp SVM [cmdb_ci_netapp_svm]
        Network ACL [cmdb_ci_network_acl]
        Network ACL Rule [cmdb_ci_network_acl_rule]
        Network Policy Group [cmdb_ci_network_policy_group]
        Network Template [cmdb_ci_network_template]
        Performance Template [cmdb_ci_perf_template]
        Port Group [cmdb_ci_port_group]
            VMware Distributed Virtual Port Group [cmdb_ci_vcenter_dv_port_group]
        Protection Template [cmdb_ci_protection_template]
        Qtree [cmdb_ci_qtree]
        Remote Backup Template [cmdb_ci_remote_backup_template]
        Resource Group [cmdb_ci_resource_group]
        Route [cmdb_ci_route]
        Route Table [cmdb_ci_route_table]
        Router [cmdb_ci_router]
        Routing Policy [cmdb_ci_routing_policy]
        Scaling Policy [cmdb_ci_sa_scaling_pol_base]
            Dynamic Scaling Policy [cmdb_ci_sa_dynamic_policy]
            Simple Scaling Policy [cmdb_ci_sa_simple_policy]
        Schedule Policy Template [cmdb_ci_schedule_policy_template]
        Server Array Launch Configuration [cmdb_ci_sa_launch_config]
        Server Snapshot [cmdb_ci_server_snapshot]
        Snapshot Template [cmdb_ci_snapshot_template]
        SNAT IP Pool [cmdb_ci_snat_ip_pool]
        Storage Access Policy [cmdb_ci_storage_access_policy]
        Storage Container [cmdb_ci_storage_container]
        Storage Default Template [cmdb_ci_storage_def_template]
        Storage Efficiency Template [cmdb_ci_storage_eff_template]
        Storage Mapping [cmdb_ci_storage_mapping]
        Storage Node [cmdb_ci_storage_node]
        Storage Volume Snapshot [cmdb_ci_storage_vol_snapshot]
        Switch [cmdb_ci_switch]
        Virtual Desktop [cmdb_ci_virtual_desktop]
        Virtual Machine Instance [cmdb_ci_vm_instance]
            EC2 Virtual Machine Instance [cmdb_ci_ec2_instance]
            Hyper-V Virtual Machine Instance [cmdb_ci_hyper_v_instance]
            KVM Virtual Machine Instance [cmdb_ci_kvm_vm_instance]
            Solaris Virtual Machine Instance [cmdb_ci_solaris_instance]
            VMware Virtual Machine Instance [cmdb_ci_vmware_instance]
        Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
        Virtual Server Array [cmdb_ci_sa_server_array]
        VM User Credentials [cmdb_ci_vm_user_credentials]
        VMware vCenter Object [cmdb_ci_vcenter_object]
            Cloud Network [cmdb_ci_network]
                VMware Distributed Virtual Switch [cmdb_ci_vcenter_dvs]
                VMware vCenter Network [cmdb_ci_vcenter_network]
            Datastore [cmdb_ci_datastore]
                VMware vCenter Datastore [cmdb_ci_vcenter_datastore]
            ESX Resource Pool [cmdb_ci_esx_resource_pool]
            Host Cluster [cmdb_ci_host_cluster]
                VMware vCenter Cluster [cmdb_ci_vcenter_cluster]
            Logical Datacenter [cmdb_ci_logical_datacenter]
                AWS Datacenter [cmdb_ci_aws_datacenter]
                Azure Datacenter [cmdb_ci_azure_datacenter]
                Cisco Apic [cmdb_ci_cisco_apic]
                LB Datacenter [cmdb_ci_lb_datacenter]
                Netapp Datacenter [cmdb_ci_netapp_datacenter]
                Openstack Datacenter [cmdb_ci_openstack_datacenter]
                VMware vCenter Datacenter [cmdb_ci_vcenter_datacenter]
            VMware vCenter Folder [cmdb_ci_vcenter_folder]
        Volume Template [cmdb_ci_volume_template]
        VPN Connection [cmdb_ci_vpn_connection]
        VServer Peer [cmdb_ci_vserver_peer]
    Virtual Private Cloud [cmdb_ci_vpc]
    Virtual Private Network [cmdb_ci_vpn]
    Websphere Cell [cmdb_ci_websphere_cell]

View solution in original post

9 REPLIES 9

Oleg
Mega Sage

Try to execute the following code in Background Script:

function getChildren (parentSysId, parentLevel) {
    var children = new GlideRecord("sys_db_object");
    children.addQuery("super_class", parentSysId);
    children.orderBy("label");
    children.query();
    var items = [], item;
    while (children.next()) {
        item = {
            sysId: children.getUniqueValue(),
            name: String(children.name),
            label: String(children.label),
            isExtendable: String(children.is_extendable),
            level: parentLevel + 1
        };
        items.push(item);
        gs.print(" ".repeat(item.level*4) + item.label + " [" + item.name + "]");
        if (String(children.is_extendable) === "true") {
            item.children = getChildren(item.sysId, item.level);
        }
        //gs.print(JSON.stringify(item));
    }
    return items;
}
var sysDbObject = new GlideRecord("sys_db_object");
if (sysDbObject.get("name", "cmdb_ci")) {
    var baseItem = {
        sysId: sysDbObject.getUniqueValue(),
        name: String(sysDbObject.name),
        label: String(sysDbObject.label),
        isExtendable: String(sysDbObject.is_extendable),
        level: 0
    };
    //gs.print(JSON.stringify(baseItem));
    gs.print(baseItem.label + " [" + baseItem.name + "]");
    baseItem.children = getChildren(baseItem.sysId, baseItem.level);
    //gs.print(JSON.stringify(baseItem));
}

It's just a simple example of filling structure with CMDB class hierarchy and displaying results in a simple form. You can modify the code based on your wishes. The output of the code on a personal developer instance looks as following:

Configuration Item [cmdb_ci]
    Accessory [cmdb_ci_acc]
    Alias [cmdb_ci_alias]
        DNS Alias [cmdb_ci_dns_alias]
    Application [cmdb_ci_appl]
        .NET Application [cmdb_ci_appl_dot_net]
        Active Directory Service [cmdb_ci_appl_active_directory]
        ActiveMatrix Business Works [cmdb_ci_appl_tibco_matrix]
        ActiveMatrix Business Works Process [cmdb_ci_appl_tibco_matrix_proc]
        Advanced Queue Queue [cmdb_ci_appl_ora_queue]
        Agility Process [cmdb_ci_agility_process]
        Application Server [cmdb_ci_app_server]
            Cloud App Server [cmdb_ci_cloud_appserver]
            Composer [cmdb_ci_app_server_composer]
            Data Power [cmdb_ci_app_server_datapower]
            Data Power Domain [cmdb_ci_app_server_dp_domain]
            Domino [cmdb_ci_app_server_domino]
            GlassFish [cmdb_ci_appl_glassfish]
            GlassFish WAR [cmdb_ci_appl_glassfish_war]
            HP uCMDB [cmdb_ci_app_server_hp_ucmdb]
            IBM Websphere [cmdb_ci_app_server_websphere]
                Websphere ODR LB [cmdb_ci_app_server_ws_odr]
            JavaServer [cmdb_ci_app_server_java]
            JBoss [cmdb_ci_app_server_jboss]
            Jboss module [cmdb_ci_app_server_jb_module]
            Jrun [cmdb_ci_app_server_jrun]
            Jrun WAR [cmdb_ci_app_server_jrun_war]
            Oracle Essbase Server [cmdb_ci_app_server_ora_ess]
            Oracle iAS [cmdb_ci_app_server_ora_ias]
            Oracle iAS Web module [cmdb_ci_app_server_ora_ias_m]
            Remedy HSServer [cmdb_ci_app_server_remedy]
            Tomcat [cmdb_ci_app_server_tomcat]
            Tomcat WAR [cmdb_ci_app_server_tomcat_war]
            Vendavo Application Server [cmdb_ci_app_server_vendavo]
            Weblogic [cmdb_ci_app_server_weblogic]
            Weblogic LB [cmdb_ci_appl_weblogic_lb]
            WeblogicModule [cmdb_ci_app_server_wl_module]
            Websphere EAR [cmdb_ci_app_server_ws_ear]
        BizTalk [cmdb_ci_appl_biztalk]
        BizTalk Orchestration [cmdb_ci_appl_biztalk_orch]
        CA Enterprise Communicator [cmdb_ci_appl_ca]
        CA Identity Manager Provisioning Server [cmdb_ci_appl_ca_id_man]
        CA Introscope Enterprise Manager [cmdb_ci_appl_ca_ent_man]
        Cisco CallManager [cmdb_ci_appl_cisco_call_man]
        Cisco Fibre InterConnect [cmdb_ci_appl_cisco_fibre]
        Citrix Application Icon [cmdb_ci_appl_citrix_app]
        Citrix Collector [cmdb_ci_appl_citrix_collector]
        Citrix License server [cmdb_ci_appl_license_server]
        Citrix XenAPP or Presentation Server [cmdb_ci_appl_citrix_xenapp]
        Cloud Messaging Service [cmdb_ci_cloud_messaging_service]
        Connect-It Service [cmdb_ci_appl_connectit]
        Control-M [cmdb_ci_appl_controlm]
        Database Instance [cmdb_ci_db_instance]
            Cloud DataBase [cmdb_ci_cloud_database]
            DB2 Instance [cmdb_ci_db_db2_instance]
            HBase Instance [cmdb_ci_db_hbase_instance]
            MongoDB Instance [cmdb_ci_db_mongodb_instance]
            MS SQL DataBase [cmdb_ci_db_mssql_database]
            MS SQL Server [cmdb_ci_db_mssql_server]
            MSFT SQL Instance [cmdb_ci_db_mssql_instance]
            MySQL Instance [cmdb_ci_db_mysql_instance]
            Oracle Instance [cmdb_ci_db_ora_instance]
            PostgreSQL Instance [cmdb_ci_db_postgresql_instance]
            SQL Server Analysis Services [cmdb_ci_db_mssql_analysis]
            SQL Server Integration Services [cmdb_ci_db_mssql_integration]
            SQL Server Reporting Services [cmdb_ci_db_mssql_reporting]
            Sybase Instance [cmdb_ci_db_syb_instance]
        Delivery Controler [cmdb_ci_appl_delivery_controler]
        Documentum Brava Job Processor [cmdb_ci_appl_doc_brava_proc]
        Documentum Brava License Server [cmdb_ci_appl_doc_brava_server]
        Documentum Broker [cmdb_ci_appl_doc_docbroker]
        Documentum DocBase [cmdb_ci_appl_doc_docbase]
        Dynamic CRM Component [cmdb_ci_appl_ms_dynamic_crm]
        EMS Queue [cmdb_ci_appl_tibco_queue]
        epic agent [cmdb_ci_epic_agent]
        epic cache [cmdb_ci_epic_cache]
        epicd app server [cmdb_ci_epicd_app_server]
        Exchange Service Component [cmdb_ci_exchange_service_component]
            Exchange Client Access Server [cmdb_ci_exchange_cas]
            Exchange Edge Transport Server [cmdb_ci_exchange_edge_transport_server]
            Exchange Hub Transport Server [cmdb_ci_exchange_hub_transport_server]
            Exchange MailBox [cmdb_ci_exchange_mailbox]
            Exchange Mailbox Server [cmdb_ci_exchange_mailbox_server]
            ExchangeBackEndServer [cmdb_ci_exchange_backend]
            ExchangeFrontEndServer [cmdb_ci_exchange_frontend]
            ExchangeHub [cmdb_ci_exchange_hub]
        Fast Search [cmdb_ci_appl_fastsearch]
        Generic Application [cmdb_ci_appl_generic]
        Groundwork [cmdb_ci_appl_groundwork]
        HP Operations Manager [cmdb_ci_appl_hp_operations]
        HP Quality Center [cmdb_ci_appl_hp_qc]
        HP Service Manager [cmdb_ci_appl_hp_service]
        HP SM Index Server [cmdb_ci_appl_hp_index]
        HP SM KnowledgeBase [cmdb_ci_appl_hp_sm_kb]
        IBM CICS [cmdb_ci_appl_ibm_cics]
        IBM CTG [cmdb_ci_appl_ibm_ctg]
        IBM WebSphere Message Broker [cmdb_ci_appl_ibm_wmb]
        IBM WebSphere MQ [cmdb_ci_appl_ibm_wmq]
        IBM WebSphere MQ Queue [cmdb_ci_appl_ibm_wmq_queue]
        IBM WMB Http Listener [cmdb_ci_appl_ibm_wmb_listener]
        Infrastructure Service [cmdb_ci_infra_service]
            AD Domain [cmdb_ci_ad_domain]
            AD Forest [cmdb_ci_directory_ad_forest]
            CA eTrust Directory Server [cmdb_ci_appl_ca_dir_server]
            Directory Server [cmdb_ci_directory_server]
                Active Directory Domain Controller [cmdb_ci_ad_controller]
                Cloud Directory [cmdb_ci_cloud_directory]
            Email Server [cmdb_ci_email_server]
            Enterprise Vault [cmdb_ci_email_server_ent_vault]
            FTP Server [cmdb_ci_ftp_server]
            HA Proxy [cmdb_ci_directory_ha]
            IIFP [cmdb_ci_directory_iifp]
            IIS Virtual Directory [cmdb_ci_iisdirectory]
            Inetinfo service [cmdb_ci_inetinfo]
            IP Server [cmdb_ci_ip_server]
            JES [cmdb_ci_email_server_jes]
            LDAP Service [cmdb_ci_infra_service_ldap]
                LDAP DB [cmdb_ci_directory_ldap]
            Policy Server [cmdb_ci_dir_policy_server]
            Site Minder [cmdb_ci_dir_site_minder_server]
            Sun Directory Proxy Server [cmdb_ci_sun_dir_proxy_server]
            Sun LDAP Server [cmdb_ci_sun_ldap_dir_server]
            Web Server [cmdb_ci_web_server]
                Apache Web Server [cmdb_ci_apache_web_server]
                Cloud WebServer [cmdb_ci_cloud_webserver]
                Iplanet Web Server [cmdb_ci_iplanet_web_server]
                Microsoft iis Web Server [cmdb_ci_microsoft_iis_web_server]
                Nginx Web Server [cmdb_ci_nginx_web_server]
        Inter connect [cmdb_ci_inter_connect]
        Interconnect Instance [cmdb_ci_interconnect_instance]
        ITAM Asset Center [cmdb_ci_appl_itam]
        Load Balancer Application [cmdb_ci_lb_appl]
            HAProxy Load Balancer [cmdb_ci_lb_haproxy]
            Modjk Load Balancer [cmdb_ci_lb_modjk]
            ModProxy Load Balancer [cmdb_ci_lb_modproxy]
            Nginx Load Balancer [cmdb_ci_lb_nginx]
        Lotus Domino HTTP Server [cmdb_ci_web_domino]
        Management Server [cmdb_ci_config_automation_server]
            Puppet Master [cmdb_ci_puppet_master]
        Mongo Config Server [cmdb_ci_appl_mongo_config_serv]
        Mongos Server [cmdb_ci_appl_mongos]
        MSMQ [cmdb_ci_appl_msmq]
        MySQLClusterDataNode [cmdb_ci_db_mysql_clusternode]
        MySQLClusterMGMNode [cmdb_ci_db_mysql_clustermgnode]
        Operating-system-level Virtualization Engine [cmdb_ci_oslv_engine]
            Docker Engine [cmdb_ci_docker_engine]
        Oracle App TNS Service [cmdb_ci_appl_ora_tns]
        Oracle Concurrent Server [cmdb_ci_appl_ora_conc]
        Oracle Database Listener [cmdb_ci_db_ora_listener]
        Oracle Discoverer Engine [cmdb_ci_appl_ora_disc]
        Oracle Discoverer UI [cmdb_ci_appl_ora_disc_ui]
        Oracle ESB [cmdb_ci_appl_ora_ebs]
        Oracle Forms Engine [cmdb_ci_appl_ora_forms]
        Oracle Forms UI [cmdb_ci_appl_ora_forms_ui]
        Oracle Fulfillment Server [cmdb_ci_appl_ora_fs]
        Oracle HTTP Server [cmdb_ci_appl_ora_http]
        Oracle Metric Client [cmdb_ci_appl_ora_metric_client]
        Oracle Metric Server [cmdb_ci_appl_ora_metric_svr]
        Oracle Notification Server [cmdb_ci_appl_ora_notif_svr]
        Oracle OACORE Server [cmdb_ci_appl_ora_oacore]
        Oracle OAFM Server [cmdb_ci_appl_ora_oafm]
        Oracle Process Manager [cmdb_ci_appl_ora_pm]
        Oracle Report Server [cmdb_ci_appl_ora_report]
        Oracle TNS Listener Engine [cmdb_ci_appl_ora_tnslsnr]
        Peoplesoft Application Server [cmdb_ci_appl_peoplesoft]
        RabbitMQ [cmdb_ci_appl_rabbitmq]
        RabbitMQ Cluster [cmdb_ci_appl_rabbitmq_cluster]
        RabbitMQ Queue [cmdb_ci_appl_rabbitmq_queue]
        SAP Application [cmdb_ci_appl_sap]
            SAP ASCS Application [cmdb_ci_appl_sap_ascs]
            SAP CI Application [cmdb_ci_appl_sap_ci]
            SAP DI Application [cmdb_ci_appl_sap_di]
            SAP ERS Application [cmdb_ci_appl_sap_ers]
            SAP JC Application [cmdb_ci_appl_sap_jc]
            SAP SCS Application [cmdb_ci_appl_sap_scs]
        SAP Application Server [cmdb_ci_appl_sap_server]
        SAP BO BOXIScheduleRouter [cmdb_ci_appl_sap_bo_scheduler]
        SAP Business Objects [cmdb_ci_appl_sap_bus_obj]
        SAP Business Objects CMS server [cmdb_ci_appl_sap_bo]
        SAP Hana Db [cmdb_ci_appl_sap_hana_db]
        SAP System [cmdb_ci_appl_sap_system]
        Sendmail [cmdb_ci_appl_sendmail]
        ServiceNow Application [cmdb_ci_appl_now_app]
            ServiceNow Application Component [cmdb_ci_appl_now_app_comp]
        SharePoint [cmdb_ci_appl_sharepoint]
        SharePoint Service [cmdb_ci_appl_sp_service]
        Simulation [cmdb_ci_app_simulation]
        Simulation Inclusion [cmdb_ci_app_simulation_inc]
        SQL Server Integration Services Job [cmdb_ci_db_mssql_int_job]
        Tibco Adapter [cmdb_ci_appl_tibco_adapter]
        Tibco Enterprise Message Service [cmdb_ci_appl_tibco_message]
        Tibco Hawk [cmdb_ci_appl_tibco_hawk]
        Tuxedo [cmdb_ci_appl_tuxedo]
        Tuxedo Portal [cmdb_ci_appl_tuxedo_portal]
        Vignette Content Management Server [cmdb_ci_appl_vign_content_svr]
        Vignette Search Starter [cmdb_ci_appl_vignette_search]
        Vignette Server [cmdb_ci_appl_vignette_server]
        Virtual Machine HyperVisor [cmdb_ci_vm]
            KVM [cmdb_ci_kvm]
            Parallels [cmdb_ci_vm_parallels]
            VMware [cmdb_ci_vm_vmware]
            Zones [cmdb_ci_vm_zones]
        VMware vCenter Instance [cmdb_ci_vcenter]
        WBEM Service [cmdb_ci_wbem_service]
        Web Application [cmdb_ci_web_application]
        Web Service [cmdb_ci_web_service]
        Web Site [cmdb_ci_web_site]
        Weblogic JMS Queue [cmdb_ci_appl_ora_jms_queue]
        Weblogic JMS Server [cmdb_ci_appl_weblogic_jms]
        Weblogic Module Server [cmdb_ci_appl_weblogicmodule]
        Webseal [cmdb_ci_app_server_webseal]
        Websphere Portal [cmdb_ci_appl_websphere_portal]
        Windows Domain Controller [cmdb_ci_win_domain_controller]
        WMB Flow [cmdb_ci_appl_wmb]
    Application Cluster [cmdb_ci_application_cluster]
    Batch Job [cmdb_ci_batch_job]
    Business Application [cmdb_ci_business_app]
    Business Capability [cmdb_ci_business_capability]
    Business Process [cmdb_ci_business_process]
    Business Service [cmdb_ci_service]
        Business Service Group [cmdb_ci_service_group]
        Monitored Service [cmdb_ci_service_auto]
            Application Service [cmdb_ci_service_discovered]
    CIM Profiles [cmdb_ci_cim_profile]
    Circuit [cmdb_ci_circuit]
    Cloud Key Pair [cmdb_ci_cloud_key_pair]
    Cloud Mgmt Subnet [cmdb_ci_subnet]
    Cloud Resource Base [cmdb_ci_cloud_resource_base]
    Cluster [cmdb_ci_cluster]
        Storage Cluster [cmdb_ci_storage_cluster]
        UNIX Cluster [cmdb_ci_unix_cluster]
        Windows Cluster [cmdb_ci_win_cluster]
    Cluster Node [cmdb_ci_cluster_node]
        Storage Cluster Node [cmdb_ci_storage_cluster_node]
        UNIX Cluster Node [cmdb_ci_unix_cluster_node]
        Windows Cluster Node [cmdb_ci_win_cluster_node]
    Cluster Resource [cmdb_ci_cluster_resource]
        UNIX Cluster Resource [cmdb_ci_unix_cluster_resource]
        Windows Cluster Resource [cmdb_ci_win_cluster_resource]
    Cluster Virtual IP [cmdb_ci_cluster_vip]
    Communication Device [cmdb_ci_comm]
    Computer Peripheral [cmdb_ci_peripheral]
    Computer Room [cmdb_ci_computer_room]
    Computer Room AC [cmdb_ci_crac]
    Configuration file [cmdb_ci_config_file]
        Tracked Configuration file [cmdb_ci_config_file_tracked]
    Data Center [cmdb_ci_datacenter]
    Data Center Zone [cmdb_ci_zone]
    Database [cmdb_ci_database]
    Database Catalog [cmdb_ci_db_catalog]
        DB2 Catalog [cmdb_ci_db_db2_catalog]
        MSFT SQL Catalog [cmdb_ci_db_mssql_catalog]
        MySQL Catalog [cmdb_ci_db_mysql_catalog]
        Oracle Catalog [cmdb_ci_db_ora_catalog]
        Sybase Catalog [cmdb_ci_db_syb_catalog]
    Datastore Disk [cmdb_ci_vcenter_datastore_disk]
    Disk Partition [cmdb_ci_disk_partition]
    Display Hardware [cmdb_ci_display_hardware]
    DNS Name [cmdb_ci_dns_name]
    Endpoint [cmdb_ci_endpoint]
        ACL Endpoint [cmdb_ci_endpoint_acl]
        Active Directory Domain to Domain Controllers Endpoint [cmdb_ci_endpoint_ad_domain]
        Active Directory Forest Endpoint [cmdb_ci_endpoint_ad_forest]
        Advanced Queue Endpoint [cmdb_ci_endpoint_aq]
        Agility Endpoint [cmdb_ci_endpoint_agility]
        AJP Endpoint [cmdb_ci_endpoint_ajp]
        Application To Storage Endpoint [cmdb_ci_endpoint_app_storage]
        BizTalk Connection Endpoint [cmdb_ci_endpoint_biztalk]
        Block Endpoint [cmdb_ci_endpoint_block]
        Business Objects CMS Server Endpoint [cmdb_ci_endpoint_obj_cms_srv]
        Citrix Delivery Controller Endpoint [cmdb_ci_endpoint_dliver_cnrl]
        Compute Security Endpoint [cmdb_ci_endpoint_comp_security]
        CRM Component Endpoint [cmdb_ci_endpoint_crm]
        CTG Endpoint [cmdb_ci_endpoint_ctg]
        Customer Gateway Endpoint [cmdb_ci_endpoint_cust_gateway]
        DB2 UDB Endpoint [cmdb_ci_endpoint_db2sql]
        DCTM Connection to broker Endpoint [cmdb_ci_endpoint_dctm_broker]
        DCTM Index Agent Connection Endpoint [cmdb_ci_endpoint_dctm_index]
        DCTM Job Processor Endpoint [cmdb_ci_endpoint_dctm_job]
        DocBase Connection Endpoint [cmdb_ci_endpoint_docbase]
        EJB Endpoint [cmdb_ci_endpoint_ejb]
        EMS Endpoint [cmdb_ci_endpoint_ems]
        EMS JNDI Endpoint [cmdb_ci_endpoint_ems_jndi]
        Enterprise Vault Endpoint [cmdb_ci_endpoint_ent_vault]
        Epicd Endpoint [cmdb_ci_endpoint_epicd]
        Exchange 2013 Endpoint [cmdb_ci_endpoint_exchange]
        External Network Endpoint [cmdb_ci_endpoint_extnetwork]
        F5 Mirror Endpoint [cmdb_ci_endpoint_f5]
        Fast Search Endpoint [cmdb_ci_endpoint_fastsearch]
        FromCluster_to_RabbitMQ Endpoint [cmdb_ci_endpoint_fromcluster_t]
        FTP Endpoint [cmdb_ci_endpoint_ftp]
        HPOM Endpoint [cmdb_ci_endpoint_hpom]
        HTTP Listener to WMB Dependency Endpoint [cmdb_ci_endpoint_listener_wmb]
        HTTP(S) Endpoint [cmdb_ci_endpoint_http]
        IIFP Endpoint [cmdb_ci_endpoint_iifp]
        IMAP Endpoint [cmdb_ci_endpoint_imap]
        Inclusion Endpoint [cmdb_ci_endpoint_inclusion]
            AD Service inc [cmdb_ci_endpoint_ad_service_in]
            App Icon Inc [cmdb_ci_endpoint_app]
            AQ Queue [cmdb_ci_endpoint_aq_queue]
            BizTalk Inclusion [cmdb_ci_endpoint_biztalk_orch]
            Citrix StoreFront App Icon Inc [cmdb_ci_endpoint_xenapp_citrx]
            Cloud DB Instance Inclusion [cmdb_ci_endpoint_cloud_db_instance]
            EBS Inc Modules [cmdb_ci_endpoint_ebs]
            EMS Queue EP [cmdb_ci_endpoint_ems_queue]
            GlassFish WAR Inc [cmdb_ci_endpoint_glassfish_war]
            IIS Website [cmdb_ci_endpoint_iis]
            J2EE EAR [cmdb_ci_endpoint_j2ee_ear]
            Jboss Module Inclusion [cmdb_ci_endpoint_jboss]
            JMS Queue [cmdb_ci_endpoint_jms_queue]
            Jrun WAR Inc [cmdb_ci_endpoint_jrun]
            LDAP DB EP [cmdb_ci_endpoint_ldap_db]
            MQ Queue [cmdb_ci_endpoint_mq_queue]
            MS SQL db inclusion [cmdb_ci_endpoint_ms_sql]
            Oracle App TNS Service EP [cmdb_ci_endpoint_oracle_tns]
            Oracle DB schema inclusion [cmdb_ci_endpoint_oracle_db_schema]
            Oracle iAS Module INC [cmdb_ci_endpoint_oracle_ias]
            RabbitMQ Queue Endpoint [cmdb_ci_endpoint_inclusion_rabbitmq_queue]
            SAP BO Servers [cmdb_ci_endpoint_sap_bo_servers]
            SharePoint Service EP [cmdb_ci_endpoint_sharepoint_service]
            Simulation Inclusion Endpoint [cmdb_ci_endpoint_sim_inc]
            SSIS job [cmdb_ci_endpoint_ssis_job]
            StoreFront Components [cmdb_ci_endpoint_storefront_comp]
            Tibco BW process [cmdb_ci_endpoint_tibco_bw_proc]
            Tomcat WAR Inclusion [cmdb_ci_endpoint_tomcat_war]
            Weblogic Module [cmdb_ci_endpoint_weblogic_module]
            WMB Flow EP [cmdb_ci_endpoint_wmb_flow]
            XenApp or Presentation Server [cmdb_ci_endpoint_storf]
        Inter connect Endpoint [cmdb_ci_endpoint_inter_connect]
        Internet Gateway Endpoint [cmdb_ci_endpoint_intgateway]
        ISCSI Endpoint [cmdb_ci_endpoint_iscsi]
        ITAM Asset Center Endpoint [cmdb_ci_endpoint_itam]
        JMS Flow Endpoint [cmdb_ci_endpoint_jms_flow]
        JMS Server Endpoint [cmdb_ci_endpoint_jms_server]
        LDAP Endpoint [cmdb_ci_endpoint_ldap]
        Manual Endpoint [cmdb_ci_endpoint_manual]
        MAPI Endpoint [cmdb_ci_endpoint_mapi]
        MAPI-HUB Endpoint [cmdb_ci_endpoint_mapi_hub]
        MQ Cross-memory Endpoint [cmdb_ci_endpoint_mq_mem]
        MQ Endpoint [cmdb_ci_endpoint_mq]
        MQ Flow Endpoint [cmdb_ci_endpoint_mq_flow]
        MS SQL Server Endpoint [cmdb_ci_endpoint_ms_sql_server]
        MSMQ Flow Endpoint [cmdb_ci_endpoint_msmq]
        MySQL Cluster Data Node Endpoint [cmdb_ci_endpoint_mysql_cl_dn]
        MySQL Cluster MGM Endpoint [cmdb_ci_endpoint_mysql_cl_mg]
        MySQL Server Endpoint [cmdb_ci_endpoint_mysql_server]
        MySQL Slave Server Endpoint [cmdb_ci_endpoint_mysql_slave]
        NAT Endpoint [cmdb_ci_endpoint_nat]
        Network Endpoint [cmdb_ci_endpoint_network]
        NFS Endpoint [cmdb_ci_endpoint_nfs]
        NNTP Endpoint [cmdb_ci_endpoint_nntp]
        Oracle DB Endpoint [cmdb_ci_endpoint_oracle_db]
        Oracle ESB Connection Endpoint [cmdb_ci_endpoint_oracle_esb]
        Oracle RAC DB Endpoint [cmdb_ci_endpoint_oracle_rac]
        Outbound Cluster Endpoint [cmdb_ci_endpoint_ob_cluster]
        Peoplesoft Application Server Endpoint [cmdb_ci_endpoint_peoplesoft]
        POP3 Endpoint [cmdb_ci_endpoint_pop3]
        PostgreSQL DB Endpoint [cmdb_ci_endpoint_postgresql]
        RabbitMQ Endpoint [cmdb_ci_endpoint_rabbitmq]
        Remote TCP Cross-memory Endpoint [cmdb_ci_endpoint_remote_tcp]
        RFC Endpoint [cmdb_ci_endpoint_rfc]
        Route Table Endpoint [cmdb_ci_endpoint_route_table]
        Router Endpoint [cmdb_ci_endpoint_router]
        SAP APP Endpoint [cmdb_ci_endpoint_sap_app]
        SAP Application Server Endpoint [cmdb_ci_endpoint_sap]
        SAP BO Servers Endpoint [cmdb_ci_endpoint_sap_bo_srv]
        SAP HANA DB Endpoint [cmdb_ci_endpoint_sap_db]
        Sharepoint connection Endpoint [cmdb_ci_endpoint_sp_connection]
        Simulation Endpoint [cmdb_ci_endpoint_sim_flow]
        SMTP Endpoint [cmdb_ci_endpoint_smtp]
        SSAS Endpoint [cmdb_ci_endpoint_ssas]
        SSAS for MSSQL Endpoint [cmdb_ci_endpoint_ssas_mssql]
        SSIS Endpoint [cmdb_ci_endpoint_ssis]
        SSIS file Endpoint [cmdb_ci_endpoint_ssis_file]
        SSIS for MSSQL Endpoint [cmdb_ci_endpoint_ssis_mssql]
        Storage FC Connectivity Endpoint [cmdb_ci_endpoint_storage_fc]
        StoreFront Components Endpoint [cmdb_ci_endpoint_storefront_components]
        Subnet Endpoint [cmdb_ci_endpoint_subnet]
        Sybase Endpoint [cmdb_ci_endpoint_sybase]
        TCP Endpoint [cmdb_ci_endpoint_tcp]
        Tibco BW Endpoint [cmdb_ci_endpoint_tibco_bw]
        Tibco Conf File Endpoint [cmdb_ci_endpoint_tbco_confile]
        Tibco File Listener Endpoint [cmdb_ci_endpoint_tibco_file]
        Tibco Hawk Endpoint [cmdb_ci_endpoint_tibco_hawk]
        Virtual Private Gateway Endpoint [cmdb_ci_endpoint_vpg]
        VirtualMachine to ESX Storage Endpoint [cmdb_ci_endpoint_vm_esx]
        VNIC Endpoint [cmdb_ci_endpoint_vnic]
        WMB Dependency Endpoint [cmdb_ci_endpoint_wmb_depend]
        XenApp or Presentation Server Components Endpoint [cmdb_ci_endpoint_xenapp_comp]
        XenApp or Presentation Server Endpoint [cmdb_ci_endpoint_xenapp]
    Environment [cmdb_ci_environment]
    Facility Hardware [cmdb_ci_facility_hardware]
        Buildings [cmdb_ci_building_facility]
        Fuel Tank [cmdb_ci_fuel_tank]
        HVAC Equipment [cmdb_ci_hvac]
        Power Equipment [cmdb_ci_power_eq]
            Automatic Transfer Switch [cmdb_ci_ats_power_eq]
            Direct Current Plant Battery Bank [cmdb_ci_dc_plant_battery_pwr]
            Direct Current Plant Equipment [cmdb_ci_dc_plant_eq_power_eq]
            Power Generator [cmdb_ci_generator_power_eq]
            Surger Protection Equipment [cmdb_ci_surge_power_eq]
            Uninterruptible Power Supply [cmdb_ci_ups_power_eq]
        Tower Equipment [cmdb_ci_tower_eq]
            Tower [cmdb_ci_tower_tower_eq]
            Tower Beacon [cmdb_ci_beacon_tower_eq]
            Tower Light Controller [cmdb_ci_twr_light_cnt_tower_eq]
            Tower Lights [cmdb_ci_tower_light_tower_eq]
    Fibre Channel Port [cmdb_ci_fc_port]
        Storage Port [cmdb_ci_storage_port]
    Group [cmdb_ci_group]
    Hardware [cmdb_ci_hardware]
        Cisco UCS Chassis [cmdb_ci_ucs_chassis]
        Cisco UCS Equipment [cmdb_ci_ucs_equipment]
        Computer [cmdb_ci_computer]
            Cisco UCS Blade [cmdb_ci_ucs_blade]
            Cisco UCS Rack Mount Unit [cmdb_ci_ucs_rack_unit]
            Mainframe Hardware [cmdb_ci_mainframe_hardware]
            Personal Computer [cmdb_ci_pc_hardware]
            Server [cmdb_ci_server]
                CIM Server [cmdb_ci_cim_server]
                Data Power Hosting Server [cmdb_ci_datapower_server]
                IBM Mainframe [cmdb_ci_mainframe]
                IBM Mainframe LPAR [cmdb_ci_mainframe_lpar]
                IBM zOS server [cmdb_ci_ibm_zos_server]
                ISAM Server [cmdb_ci_isam_server]
                Linux Server [cmdb_ci_linux_server]
                Load Balancer [cmdb_ci_lb]
                    A10 Load Balancer [cmdb_ci_lb_a10]
                    ACE [cmdb_ci_lb_ace]
                    Alteon [cmdb_ci_lb_alteon]
                    Cisco CSM [cmdb_ci_lb_cisco_csm]
                    Cisco CSS [cmdb_ci_lb_cisco_css]
                    Cisco GSS [cmdb_ci_lb_cisco_gss]
                    Citrix Netscaler [cmdb_ci_lb_netscaler]
                    F5 BIG-IP [cmdb_ci_lb_bigip]
                    F5 BigIP GTM [cmdb_ci_lb_f5_gtm]
                    F5 BigIP LTM [cmdb_ci_lb_f5_ltm]
                    ISA Server [cmdb_ci_lb_isa]
                    Network Load Balancer [cmdb_ci_lb_network]
                    Radware Load Balancer [cmdb_ci_lb_radware]
                Netware Server [cmdb_ci_netware_server]
                OS/X Server [cmdb_ci_osx_server]
                Server Hardware [cmdb_ci_server_hardware]
                    Network Appliance Hardware [cmdb_ci_net_app_server]
                    Server Chassis [cmdb_ci_chassis_server]
                    Server Tape Unit [cmdb_ci_tape_server]
                Storage Node Element [cmdb_ci_storage_node_element]
                Storage Server [cmdb_ci_storage_server]
                UNIX Server [cmdb_ci_unix_server]
                    AIX Server [cmdb_ci_aix_server]
                    HPUX Server [cmdb_ci_hpux_server]
                    Solaris Server [cmdb_ci_solaris_server]
                Virtualization Server [cmdb_ci_virtualization_server]
                    Hyper-V Server [cmdb_ci_hyper_v_server]
                    VMware vCenter Server Object [cmdb_ci_vcenter_server_obj]
                        ESX Server [cmdb_ci_esx_server]
                Windows Server [cmdb_ci_win_server]
            Storage Switch [cmdb_ci_storage_switch]
        Mass Storage Device [cmdb_ci_msd]
        Network Gear [cmdb_ci_netgear]
            CSU/DSU [cmdb_ci_csu_dsu_network]
            FDDI Cards [cmdb_ci_fddi_network]
            Firewall Hardware [cmdb_ci_firewall_network]
            Hub Hardware [cmdb_ci_hub_network]
            Intrusion Detection System [cmdb_ci_ids_network]
            IP Firewall [cmdb_ci_ip_firewall]
            IP Router [cmdb_ci_ip_router]
            IP Switch [cmdb_ci_ip_switch]
            Modem Hardware [cmdb_ci_modem_network]
            WAN Accelerator [cmdb_ci_wan_accel_network]
            Wireless Access Point [cmdb_ci_wap_network]
        Out-of-Band Device [cmdb_ci_outofband_device]
        PDU [cmdb_ci_pdu]
        Printer [cmdb_ci_printer]
            Multi-function Printer [cmdb_ci_mfp_printer]
            Personal Printer [cmdb_ci_personal_printer]
        UPS [cmdb_ci_ups]
    Imaging Hardware [cmdb_ci_imaging_hardware]
        Scanner [cmdb_ci_scanner]
    IP Address [cmdb_ci_ip_address]
    IP Device [cmdb_ci_ip_device]
    IP Network [cmdb_ci_ip_network]
    IP Phone [cmdb_ci_ip_phone]
    IP Service Instance [cmdb_ci_ip_service]
        UNIX Daemon [cmdb_ci_unix_daemon]
        Windows Service [cmdb_ci_windows_service]
    Load Balancer Interface [cmdb_ci_lb_interface]
    Load Balancer Pool [cmdb_ci_lb_pool]
    Load Balancer Pool Member [cmdb_ci_lb_pool_member]
    Load Balancer Service [cmdb_ci_lb_service]
    Load Balancer VLAN [cmdb_ci_lb_vlan]
    Logical Partition [cmdb_ci_lpar]
    Memory Module [cmdb_ci_memory_module]
    Monitoring Equipment [cmdb_ci_monitoring_hardware]
    Network Adapter [cmdb_ci_network_adapter]
        Cloud Mgmt Network Interface [cmdb_ci_nic]
            VMware Network Adapter [cmdb_ci_vmware_nic]
    Network Appliance Hostname [cmdb_ci_net_app_host]
    Network Hostname [cmdb_ci_network_host]
    Network Infrastructure Item [dscy_net_base]
        Exit Interface Routing Rule [dscy_route_interface]
        Next Hop Routing Rule [dscy_route_next_hop]
        Router Interface [dscy_router_interface]
        Switch Forwarding Rule [dscy_swtch_fwd_rule]
        Switch Partition [dscy_swtch_partition]
        Switchport [dscy_switchport]
        Wire [dscy_net_wire]
    Network Traffic [cmdb_ci_net_traffic]
    Operating-system-level Virtualization Container [cmdb_ci_oslv_container]
        Docker Container [cmdb_ci_docker_container]
    Operating-system-level Virtualization Image [cmdb_ci_oslv_image]
        Docker Image [cmdb_ci_docker_image]
    Operating-system-level Virtualization Image Tag [cmdb_ci_oslv_image_tag]
        Docker Image Tag [cmdb_ci_docker_image_tag]
    Operating-system-level Virtualization Local Image [cmdb_ci_oslv_local_image]
        Docker Local Image [cmdb_ci_docker_local_image]
    Outlet [cmdb_ci_pdu_outlet]
    Package [cmdb_ci_os_packages]
    Patch [cmdb_ci_patches]
    Port [cmdb_ci_port]
    Print Queue [cmdb_ci_print_queue]
    Printing Hardware [cmdb_ci_printing_hardware]
        Plotter [cmdb_ci_plotter]
    Qualifier [cmdb_ci_qualifier]
        Boundary Connection Qualifier [cmdb_ci_qualifier_boundary_connection]
        Entrypoint Marker [cmdb_ci_qualifier_entrypoint]
        External Connection Qualifier [cmdb_ci_qualifier_external_connection]
        Hidden Connection Qualifier [cmdb_ci_qualifier_hidden_conn]
        Manual CI Endpoint Qualifier [cmdb_ci_qualifier_manual_ci_endpoint]
        Manual Connection Qualifier [cmdb_ci_qualifier_manual_connection]
    Rack [cmdb_ci_rack]
    SAN Connection [cmdb_ci_san_connection]
    SAN Endpoint [cmdb_ci_san_endpoint]
    SAN Fabric [cmdb_ci_san_fabric]
    SAN Zone [cmdb_ci_san_zone]
    SAN Zone Alias [cmdb_ci_san_zone_alias]
    SAN Zone Alias Member [cmdb_ci_san_zone_alias_member]
    SAN Zone Member [cmdb_ci_san_zone_member]
    SAN Zone Set [cmdb_ci_san_zone_set]
    Software [cmdb_ci_spkg]
        Application Software [cmdb_ci_application_software]
        Desktop Software [cmdb_ci_desktop_software]
        Infrastructure Software [cmdb_ci_inf_software]
    Storage Area Network [cmdb_ci_san]
    Storage Controller [cmdb_ci_storage_controller]
    Storage Device [cmdb_ci_storage_device]
        Disk [cmdb_ci_disk]
            Storage Disk [cmdb_ci_storage_disk]
        SAN Disk [cmdb_ci_san_disk]
            Fibre Channel Disk [cmdb_ci_fc_disk]
            iSCSI Disk [cmdb_ci_iscsi_disk]
    Storage Export [cmdb_ci_storage_export]
        SAN Export [cmdb_ci_san_export]
            Fibre Channel Export [cmdb_ci_fc_export]
            iSCSI Export [cmdb_ci_iscsi_export]
    Storage File Share [cmdb_ci_storage_fileshare]
    Storage HBA [cmdb_ci_storage_hba]
    Storage Pool [cmdb_ci_storage_pool]
        LVM Pool [cmdb_ci_lvm_pool]
        Multipath IO Pool [cmdb_ci_mpio_pool]
        Multipath IO Pool Group [cmdb_ci_mpio_pool_group]
        RAID [cmdb_ci_raid]
        Veritas Disk [cmdb_ci_veritas_disk]
        Veritas Plex [cmdb_ci_veritas_plex]
        Veritas Volume [cmdb_ci_veritas_volume]
    Storage Pool Member [cmdb_ci_storage_pool_member]
        LVM Pool Member [cmdb_ci_lvm_pool_member]
        Multipath IO Pool Path [cmdb_ci_mpio_pool_path]
        RAID Member [cmdb_ci_raid_member]
        Veritas Subdisk [cmdb_ci_veritas_subdisk]
    Storage Volume [cmdb_ci_storage_volume]
        File System [cmdb_ci_file_system]
            NAS File System [cmdb_ci_nas_file_system]
            NFS File system [cmdb_ci_file_system_nfs]
            SMB File system [cmdb_ci_file_system_smb]
        Netapp Volume [cmdb_ci_netapp_volume]
    Tomcat Connector [cmdb_ci_tomcat_connector]
    Translation Rule [cmdb_ci_translation_rule]
    UPS Alarm [cmdb_ci_ups_alarm]
    UPS Bypass [cmdb_ci_ups_bypass]
    UPS Input [cmdb_ci_ups_input]
    UPS Output [cmdb_ci_ups_output]
    Veritas Disk Group [cmdb_ci_veritas_disk_group]
    Virtual Machine Object [cmdb_ci_vm_object]
        Apic Host [cmdb_ci_apic_host]
        Apic Tenant [cmdb_ci_apic_tenant]
        Application Network Profile [cmdb_ci_app_network_profile]
        Availability Set [cmdb_ci_availability_set]
        Availability Zone [cmdb_ci_availability_zone]
        AWS Account [cmdb_ci_aws_account]
        Azure Subscription [cmdb_ci_azure_subscription]
        Bridge Domain [cmdb_ci_bridge_domain]
        Bundled Resources [cmdb_ci_bundled_resources]
        Cloud IP Address [cmdb_ci_cloud_ip_address]
        Cloud LB IPAddress [cmdb_ci_cloud_lb_ipaddress]
        Cloud Load Balancer [cmdb_ci_cloud_load_balancer]
        Cloud Monitor Alarm [cmdb_ci_cloud_monitor_alarm]
        Cloud Monitor Notification [cmdb_ci_cloud_monitor_notification]
        Cloud Public IP Address [cmdb_ci_cloud_public_ipaddress]
        Cloud Storage Account [cmdb_ci_cloud_storage_account]
        Cloud Subnet [cmdb_ci_cloud_subnet]
        Cloud Topic [cmdb_ci_cloud_topic]
        Compute Security Group [cmdb_ci_compute_security_group]
        Compute Security Group Template [cmdb_ci_security_grp_template]
        Customer Gateway [cmdb_ci_customer_gateway]
        Customization Spec [cmdb_ci_customization_spec]
        Hardware Type [cmdb_ci_compute_template]
        Hyper-V Object [cmdb_ci_hyper_v_object]
            Hyper-V Cluster [cmdb_ci_hyper_v_cluster]
            Hyper-V Resource Pool [cmdb_ci_hyper_v_resource_pool]
            Hyper-V Resource Pool Component [cmdb_ci_hyper_v_rpool_comp]
            Hyper-V Virtual Network [cmdb_ci_hyper_v_network]
        Image [cmdb_ci_os_template]
            Virtual Machine Template [cmdb_ci_vm_template]
                VMware Virtual Machine Template [cmdb_ci_vmware_template]
        Installed Bundles [cmdb_ci_installed_bundles]
        Internet Gateway [cmdb_ci_internet_gateway]
        KVM Object [cmdb_ci_kvm_object]
            KVM Storage Pool [cmdb_ci_kvm_storage_pool]
            KVM Storage Volume [cmdb_ci_kvm_storage_volume]
            Network [cmdb_ci_kvm_network]
        LB Backend Server [cmdb_ci_lb_backend_server]
        LB Cookie Stickiness Policy [cmdb_ci_lb_ckstickinesspolicy]
        LIF [cmdb_ci_lif]
        Load Balancer Listener [cmdb_ci_lb_listener]
        Load Balancer Template [cmdb_ci_lb_template]
        Mirror Template [cmdb_ci_mirror_template]
        NAS Storage [cmdb_ci_nas_storage]
        NAT Gateway [cmdb_ci_nat_gateway]
        Netapp CDOT [cmdb_ci_netapp_cdot]
        Netapp SVM [cmdb_ci_netapp_svm]
        Network ACL [cmdb_ci_network_acl]
        Network ACL Rule [cmdb_ci_network_acl_rule]
        Network Policy Group [cmdb_ci_network_policy_group]
        Network Template [cmdb_ci_network_template]
        Performance Template [cmdb_ci_perf_template]
        Port Group [cmdb_ci_port_group]
            VMware Distributed Virtual Port Group [cmdb_ci_vcenter_dv_port_group]
        Protection Template [cmdb_ci_protection_template]
        Qtree [cmdb_ci_qtree]
        Remote Backup Template [cmdb_ci_remote_backup_template]
        Resource Group [cmdb_ci_resource_group]
        Route [cmdb_ci_route]
        Route Table [cmdb_ci_route_table]
        Router [cmdb_ci_router]
        Routing Policy [cmdb_ci_routing_policy]
        Scaling Policy [cmdb_ci_sa_scaling_pol_base]
            Dynamic Scaling Policy [cmdb_ci_sa_dynamic_policy]
            Simple Scaling Policy [cmdb_ci_sa_simple_policy]
        Schedule Policy Template [cmdb_ci_schedule_policy_template]
        Server Array Launch Configuration [cmdb_ci_sa_launch_config]
        Server Snapshot [cmdb_ci_server_snapshot]
        Snapshot Template [cmdb_ci_snapshot_template]
        SNAT IP Pool [cmdb_ci_snat_ip_pool]
        Storage Access Policy [cmdb_ci_storage_access_policy]
        Storage Container [cmdb_ci_storage_container]
        Storage Default Template [cmdb_ci_storage_def_template]
        Storage Efficiency Template [cmdb_ci_storage_eff_template]
        Storage Mapping [cmdb_ci_storage_mapping]
        Storage Node [cmdb_ci_storage_node]
        Storage Volume Snapshot [cmdb_ci_storage_vol_snapshot]
        Switch [cmdb_ci_switch]
        Virtual Desktop [cmdb_ci_virtual_desktop]
        Virtual Machine Instance [cmdb_ci_vm_instance]
            EC2 Virtual Machine Instance [cmdb_ci_ec2_instance]
            Hyper-V Virtual Machine Instance [cmdb_ci_hyper_v_instance]
            KVM Virtual Machine Instance [cmdb_ci_kvm_vm_instance]
            Solaris Virtual Machine Instance [cmdb_ci_solaris_instance]
            VMware Virtual Machine Instance [cmdb_ci_vmware_instance]
        Virtual Private Gateway [cmdb_ci_virtual_pvt_gateway]
        Virtual Server Array [cmdb_ci_sa_server_array]
        VM User Credentials [cmdb_ci_vm_user_credentials]
        VMware vCenter Object [cmdb_ci_vcenter_object]
            Cloud Network [cmdb_ci_network]
                VMware Distributed Virtual Switch [cmdb_ci_vcenter_dvs]
                VMware vCenter Network [cmdb_ci_vcenter_network]
            Datastore [cmdb_ci_datastore]
                VMware vCenter Datastore [cmdb_ci_vcenter_datastore]
            ESX Resource Pool [cmdb_ci_esx_resource_pool]
            Host Cluster [cmdb_ci_host_cluster]
                VMware vCenter Cluster [cmdb_ci_vcenter_cluster]
            Logical Datacenter [cmdb_ci_logical_datacenter]
                AWS Datacenter [cmdb_ci_aws_datacenter]
                Azure Datacenter [cmdb_ci_azure_datacenter]
                Cisco Apic [cmdb_ci_cisco_apic]
                LB Datacenter [cmdb_ci_lb_datacenter]
                Netapp Datacenter [cmdb_ci_netapp_datacenter]
                Openstack Datacenter [cmdb_ci_openstack_datacenter]
                VMware vCenter Datacenter [cmdb_ci_vcenter_datacenter]
            VMware vCenter Folder [cmdb_ci_vcenter_folder]
        Volume Template [cmdb_ci_volume_template]
        VPN Connection [cmdb_ci_vpn_connection]
        VServer Peer [cmdb_ci_vserver_peer]
    Virtual Private Cloud [cmdb_ci_vpc]
    Virtual Private Network [cmdb_ci_vpn]
    Websphere Cell [cmdb_ci_websphere_cell]

marioperron
Tera Contributor

Wow!  Talk about knowledgeability!  Thanks so much!

I have interfaced this with our ServiceNow Tool Management Team and we'll try to keep this script limited to a handful of people to access.

Have a great day!

kiranbahl27
Kilo Contributor

Hello can you please let me know the steps ---- where do i write this to see this info sorry I am still learning SN

Go to Filter Navigator and find "Scripts - Background" (System Definition -> Scripts - Background)
Click on it and copy/paste the code provided by Oleg
Run Script.