Script using Glide Record to fetch the CI hierarchy of a child CI using Correlation ID and CI Type
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2023 07:23 AM - edited 08-02-2023 11:56 PM
Hello,
I am looking for logic where we are receiving CIs from third party tool UCMDB. we want a script in the transform (onBefore) where the condition should be - Target will identify hold the CI type incoming from uCMDB based on correlation id and its ci type and then identify the higher level of ci type. for eg; if the ci type is apache (cmdb_ci_apache_web_server), then its next level up hierarchy is 'cmdb_ci_appl' hardware and then it extends
Extends Level 1 | Extends Level 2 | Extends Level 3 |
cmdb_ci_web_server | cmdb_ci_infra_service | cmdb_ci_appl |
So we need a script to identify the incoming CI type record using correlation id & ci type, then identify its target ci type and then its hierarchical CI types but not the topology of actual record but OOTB hierarchy. Likewise, we have about 45 CI types for which we need to identify the Higher Level CI Class.