What is 'Sys class path' [sys_class_path] field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 04:33 AM
1. What is 'Sys class path' [sys_class_path] field?
2. Is there any scenario where one uses that field?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 08:00 AM
Hello @Suggy ,
In ServiceNow's CMDB, the Sys Class Path field is used to identifying the hierarchy or path of a CI within the CMDB class structure. It's particularly useful in distinguishing between different levels of configuration items and understanding their relationships within the CMDB.
Using Sys Class Path, you can easily determine the hierarchy and relationships between these CIs within the CMDB. This information is valuable for various CMDB-related activities such as reporting, change management, and service mapping.
Overall, the Sys Class Path field in CMDB serves as a navigational aid, helping users understand the structure and relationships of configuration items within the CMDB hierarchy.
Example:
Let's consider a simple example involving CIs related to a computer system:
CI 1: Server
CI 2: Application
CI 3: Database
In this example, CI 3 (Database) is related to CI 2 (Application), which in turn is related to CI 1 (Server). Each CI has its own class in the CMDB hierarchy.
Now, let's assume the Sys Class Path values for these CIs:
CI 1 (Server): cmdb_ci_server
CI 2 (Application): cmdb_ci_server/application
CI 3 (Database): cmdb_ci_server/application/database
With these Sys Class Path values:
CI 1 is identified as a Server.
CI 2 is identified as an Application belonging to the Server class.
CI 3 is identified as a Database belonging to the Application class, which in turn belongs to the Server class.
Please Mark My Answer as Helpful and Accept as Solution, if you find this article helpful or resolves your issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 08:08 AM
Hi @Suggy ,
From community post >>
In ServiceNow, the sys_class_path is used to identify specific types of CMDB records. In many cases, the sys_class_path from the main table (cmdb) is used. However, some queries use sys_class_path directly from the partition tables to avoid excess JOINs. In these queries, objects that have certain CMDB types won't appear in the query results.
https://www.servicenow.com/community/itom-forum/discovery-fields/m-p/1037583
Refer these KB Article
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0994926
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0726377
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2024 09:15 AM
@Suggy Please refer to this thread https://www.servicenow.com/community/itom-forum/discovery-fields/m-p/1037583 to know a better explanation of this class path field.
Hope this helps.