UCMDB and UD Practitioners Forum (Previously CMS)
cancel
Showing results for 
Search instead for 
Did you mean: 

To pass relationships from ucmdb to sm

Highlighted
SriRamAvinash
Occasional Advisor

To pass relationships from ucmdb to sm

Hi Everyone,
We have CIrelationship table in SM with relationship.name abd logical.name as unique key.I am trying to push 6relationships(unix[1]----->unix[6]{solaris zones}) froom ucmdb to sm.ucmdb is creating each relationship as a single record and pushing to sm.As there is a unique key in sm, once the first record is created it is updating the logs with record contains duplicates for other relationships.But it should update the existing record right.

 

Thanks in Advance

 

 

P.S. This thread has been moved from Application Perf Mgmt (BAC / BSM) Support and News Forum to CMS and Discovery Support and News Forum. -HP Forum Moderator

2 REPLIES
b_bravi
Frequent Visitor

Re: To pass relationships from ucmdb to sm

Can you post the exact error message logged in the log file?

 

For sure, if it is already existing CI, then it should update the details.

 

You mentioned six realtionship, what kind of relationship you are having ?

 

This error comes, whenever we have the same name of the CI but having different ucmdb ids.

SriRamAvinash
Occasional Advisor

Re: To pass relationships from ucmdb to sm

Hi Ravi,

 

Thank you for your response.No error is shown in the logs.Probelm is there are 6 unix servers connected to one unix server(Membership).Now i am pushing these realtionships to sm.uCMDB is creating a xslt file for each relationship.When first rlationship is sent sm is creating a record in cirelationship table.Now the second relationship is passed, sm should call update action as already cirelationship table has a record with same parent CI and relationshipname.But we found in logs that it is calling create action for each incoming relationship which instead should call update action.

 

Action if record exists and unexpected data discovered:

 

I selected to log the result and update the record.

 

I will explain you with an example:

Below is the example
First Relation:(Record Created)
Upstream CI: CI360012347
Relationship name: Hosted Virtual System
Relationship Type: Logical
Relationship Subtype: Membership
Downstream CI: CI360012342

It is replacing the existing CI in downstream CI
Second Relation:
Upstream CI: CI360012347
Relationship name: Hosted Virtual System
Relationship Type: Logical
Relationship Subtype: Membership
Downstream CI: CI360012343(Old Value: CI360012342)

But the below record should update as shown:
Second Relation:
Upstream CI: CI360012347
Relationship name: Hosted Virtual System
Relationship Type: Logical
Relationship Subtype: Membership
Downstream CI: CI360012342
                               CI360012343

//Add this to "OnDomLoad" event