UCMDB 9.0x Enrichment to add relationship to existing non-related CI

Hello everyone,

 

Is it possible with an enrichment to add a relationship into a pattern to an existing CI that does not have an existing relationship to anything in the pattern?

 

For example the attached image is what I am trying to do.

 

I have 12 workstations within a specific IP range, and an existing "FunctionalGroup" called "Students" that I would like to add with a "Usage" relationship over those computers.  We are taught to just "add a new" functional group with the same parameters as the existing one but that seems kludgy.

 

One workaround is to add a dummy relationship to anything in the graph (for example to the subnet) so that I could add it in query mode, and then add the new usage relationship in enrichment mode to the computers themselves.  This works, but there should be a way to just specify a specific CI that I want to add a relationship to in enrichment mode without having to try to recreate it.

 

Attached is the example of what I'm trying to do.  The "Usage(1)" relationship upper left is the dummy one required to make it work.  Is there any other way?

 

Thanks for your help!

Parents
  • Actually I try to do the same thing.

     

    1) we have a collection of business services defined in ucmdb, They have a property called "LSNumber" which is unique. This property is NOT a "exclusive" key.

     

    2) we have nodes, which have a attribute assigned to them called "LSNumber". This attribute is read via a flag file on the node, read during custom discovery (shell.safecat(filename) parsing).

     

    I want to create a enrichment, which maps the business service to the node, based on this attribute. For this I did the following:

     

    a) Create a new Enrichment Rule

    b) Added a Query containing Node and Bussiness Service connected with a virtual join of "Node.LSNumber = BusinessService.LSNumber"

    c) In Enrichment View I just add a relationship of "Contains"

     

    Attached the resulting enrichment rule. The number of results is correct.

     

    This works the first time I create the enrichment. It maps the service to the node (Business Service "Contains" the Node). However for subsequent discovery jobs the relationship is not created, altought the preview does show the creation.

     

    I already sheduled the enrichment rule every 5 minutes, however connection is not created.

     

    What do I miss ?? (UCMDB is 9.05)

     

    How can I debug this ?

     

    Regards,

    Robert

  • You could do this with a pattern based model, which outputs all nodes with the specific LSNumber you care about.  Then create an instance based model for the application in question, and drag the pattern based model output under the business application CI.  Then, any time a new node is discovered with that specific attribute (LSNumber in your case), it will automatically get added to the model with the correct relationship within 12 hours (that special update for dynamic TQLs runs twice a day by default).

     

    That seems cleaner to me than trying an enrichment rule, but your specific use case may dictate otherwise.

     

    HTH,

    -Mike

Reply
  • You could do this with a pattern based model, which outputs all nodes with the specific LSNumber you care about.  Then create an instance based model for the application in question, and drag the pattern based model output under the business application CI.  Then, any time a new node is discovered with that specific attribute (LSNumber in your case), it will automatically get added to the model with the correct relationship within 12 hours (that special update for dynamic TQLs runs twice a day by default).

     

    That seems cleaner to me than trying an enrichment rule, but your specific use case may dictate otherwise.

     

    HTH,

    -Mike

Children
  • As I understand I have to do this for every application right ?

     

    We import valid applications from a integration and new applications may be added without notice to the uCMDB team here. So for the import new BusinessService CI's are created by the integration adapter and we must attach nodes to this CI.

     

    Can I create pattern based models on demand automatically via integration adapter ?

     

    The intersting thing about the enrichment is, thatit works exactly once OR if I modify it (e.g. add a label to the containment) and save the enrichment. Then it is executed again. So it looks doable and more like an implementation bug.

     

    Robert