Script using Glide Record to fetch the CI hierarchy of a child CI using Correlation ID and CI Type

mh89
Tera Contributor

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 1Extends Level 2Extends Level 3
cmdb_ci_web_servercmdb_ci_infra_servicecmdb_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.

0 REPLIES 0