Auto-generate product models for logical CIs
-
- UpdatedJan 30, 2025
- 3 minutes to read
- Yokohama
- Common Service Data Model
Use the CSDM Product Model Assignment job to auto-generate a product model record (application model, service model, or software model) for each logical CI that is not yet associated with a product model. Product models are ideal for associating CIs that are parts of a single digital product.
Before you begin
Users with read access to modified CI records can view the new product models.
Role required: admin
About this task
Application, service, and software class instance CIs are not created through Discovery, so their Model ID [model_id] values might not refer to product model records. To assist you in migrating to a product-centric management paradigm, each instance of a logical CI should be associated with a product model. The CSDM Product Model Assignment job operates on the following classes and uses the name of the class instance as the name of the new product model.
- Service Offering
- Technology Management Service (formerly Technical service — renamed in CSDM v5)
- Service Instance (formerly Application Service — renamed in CSDM v5): The script adds the version (as it relates to the business application) to the associated software model name. For example, the software model for the MyAppService service instance CI might be MyAppService - version: 2.1.
- Business Service
- Business Application
- Create a new application model, service model, or software model record with the same name as the CI. If the requisite info for generating the name value does not appear in the CI, the script uses the default value that you specified.
- For the CI, add a reference to the new product model in the Model ID [model_id] field.
- The script observes the access rules of the CMDB admin that runs the script.
- If an auto-generated product model record for a class instance CI would be identical to an existing record, then the existing record is used for that CI.
- If your data includes CIs with identical names (this is actually an error), then the resulting model_id values might conflict. Validate the resulting model_ids after running the script.
Procedure