Highlighted
Absent Member.. Absent Member..
Absent Member..
136 views

AM Push-Adater

Team,

 

at different customers and with different Versions we have tried to adjust the AM Push-Adapter between UCMDB and Asset Manager, to be able to delete all Software in Asset Manager, which have not been found by the latest discovery run of UCMDB. But we only managed to set the flag of the Software to "be missing" and the we had to delete all those "be missing" Software by a Worklow or a Script later directly in Asset Manager. In former times, by using HP DDMI and HP Connect-It is was possible to delete this Software directly in the interface, whenever an import was done. Would it be possible to get just a couple of Screenshots how to configure this behavior in the letest Version of the AM Push-Adapter?

 

Thanks a lot

 

Oliver

0 Likes
1 Reply
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: AM Push-Adater

Hello Olivier,

 

This behavior is controlled by the general mapping in the adapter.

 

The documentation  :

 

C:\HP\UCMDB\UCMDBServer\deploy\cp-docs\docs\eng\pdfs\HP_UCMDB_DICG_HP_Integrations.pdf

 

on the section 3 , search for : Action on Delete.

 

Instruct to edit the mapping : AMPushAdapter/config/am-push-mapping.xml

 

and to identify the part that take care of softwares. This one is the most commonly used for softwares.

 

In the following sample, the action on delete is overwritten by the bold section :

 

  <!-- SW as Root Push -->
    <am-mapping ci-type="SW_amSoftInstall" primary-key="lSoftInstId" operation-type="update_else_insert" target-ci-type="amSoftInstall" parallel-push-allowed="true">
        <reconciliation>
            <reconciliation-keys>
                <reconciliation-key>Folder</reconciliation-key>
                <reconciliation-key>lModelId</reconciliation-key>
                <reconciliation-key>lParentPortfolioId</reconciliation-key>
            </reconciliation-keys>
        </reconciliation>
        <reference-attribute ci-name="SW_amModel" datatype="STRING" name="lModelId" reference-direction="child"/>
        <reference-attribute ci-name="SW_comp_amPortfolio" datatype="STRING" name="lParentPortfolioId" reference-direction="child"/>
        <action-on-delete>
            <set-attribute-value name="bMissing" datatype="BOOLEAN" value="1"/>
        </action-on-delete>
    </am-mapping>

 

change it to :

 

      <action-on-delete>
            <delete-ci/>
  

      </action-on-delete>

 

 

Could you test and keep us informed ?

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.