Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Respected Contributor.. Liu_Jun Respected Contributor..
Respected Contributor..
514 views

Support Tips:Push of installed software creates duplicate software records in Asset Manager (AM)

Issue:

When pushing software data from UCMDB to AM multiple times, duplicate software records are created.

 

Workaround/resolution

please modify the reconciliation rule in the am-push-mapping.xml as below:

----------------
<am-mapping ci-type="Complete_amSoftInstall" primary-key="lSoftInstId" operation-type="update_else_insert" target-ci-type="amSoftInstall" parallel-push-allowed="true">
< reconciliation>
< reconciliation-advanced>1=${if(vInventoryKeyValid==true){return 1} else {return 0}} AND Folder='${mappings.scripts.AMReconciliationAdvanced.getSqlTextConst(vFolder)}' AND ParentPortfolio.Computer.lComputerId = '${vParentId}' AND seType = 0 AND InventModel.InventoryKey='${vInventoryKey}'</reconciliation-advanced>
< reconciliation-advanced>Folder='${mappings.scripts.AMReconciliationAdvanced.getSqlTextConst(vFolder)}' AND ParentPortfolio.Computer.lComputerId = '${vParentId}' AND seType = 0 AND InventModel.InventoryName='${mappings.scripts.AMReconciliationAdvanced.getSqlTextConst(vSWName)}' AND InventModel.Version='${vVersion}' AND InventModel.BrandName='${vBrandName}'</reconciliation-advanced>
< /reconciliation>
< reference-attribute ci-name="Complete_amInventModel" datatype="STRING" name="lInventModelId" reference-direction="child"/>
< reference-attribute ci-name="Complete_amPortfolio" datatype="STRING" name="lParentPortfolioId" reference-direction="child"/>
< attribute-reconciliation attribute-name="lModelId"
insert-script="mappings.scripts.AMReconciliationAdvanced.getModelFromInstalledSoftwareCI(OutputCI)"
update-script="mappings.scripts.AMReconciliationAdvanced.getModelFromInstalledSoftwareCI(OutputCI)"/>
< action-on-delete>
< set-attribute-value name="bMissing" datatype="BOOLEAN" value="1"/>
< /action-on-delete>
< /am-mapping>
------------------------

Regards,
Jun

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
Labels (1)
0 Likes
4 Replies
Absent Member.. nocserve Absent Member..
Absent Member..

Re: Support Tips:Push of installed software creates duplicate software records in Asset Manager (AM)

what of duplicates of Computer Assets especially if you are trying to use Serial # and HostNames as unique attributes for reconciliation?

0 Likes
John Goldstein Outstanding Contributor.
Outstanding Contributor.

Re: Support Tips:Push of installed software creates duplicate software records in Asset Manager (AM)

Which content packs are affected?

Is this only if you are using the AMPushAdapter or is the AMGenericAdapter affected as well?

0 Likes
Respected Contributor.. Liu_Jun Respected Contributor..
Respected Contributor..

Re: Support Tips:Push of installed software creates duplicate software records in Asset Manager (AM)

hi,

 

This is an old issue in ampush adapter

Regards,
Jun

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
0 Likes
Respected Contributor.. Liu_Jun Respected Contributor..
Respected Contributor..

Re: Support Tips:Push of installed software creates duplicate software records in Asset Manager (AM)

this sounds like a customization question. you need to refer to tailoring document then modify this part accordingly.

Regards,
Jun

“HP Support
If you find that this or any post resolves your issue, please be sure to mark it as an accepted solution.”

Click the KUDOS star on the left to say 'Thanks'
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.