Highlighted
Super Contributor.
Super Contributor.
481 views

Enrichment rule for software, that is no longer installed

Jump to solution

Hello,

I'm trying to create an enrichment rule for the deletion of "Installed Software" Cis, but I wasn't not successful.
The enrichment rule should delete any "Installed Software" CI on a computer, that does not have the same "LastDiscoveredTime" as the computer.
I need the enrichment rule for the "Inventory Discovery by Manual Scanner" job, because the Auto-Delete function doesn't work correctly for that job.


Has anyone created a similar enrichment rule and what should I pay attention to?
Any help is welcome .... 🙂

Regards

Achim

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Super Contributor.
Super Contributor.

Re: Enrichment rule for software, that is no longer installed

Jump to solution
Hello Bogdan,

I think you refer to a different discovery job. I'm writing about the "Inventory Discovery by Manual Scanner" and you about the "Inventory Discovery by Scanner".
Thats a difference.
Here are some links about the issue:
https://softwaresupport.softwaregrp.com/doc/KM01744875
https://softwaresupport.softwaregrp.com/doc/KM03476130
https://softwaresupport.softwaregrp.com/doc/KM03485464
https://community.microfocus.com/t5/CMS-Discovery-CMDB-User/Inventory-Discovery-by-Manual-Scanner-deletes-CI-s/m-p/2688572#M19996
Regards
Achim

View solution in original post

8 Replies
Highlighted
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor

Re: Enrichment rule for software, that is no longer installed

Jump to solution

Hello

Regarding the ER it is out of my scope apologies, but for the aging mechanism let me suggest you to open a ticket with support to check if there is a fix, 

 

Best Regards

____________________________
Alan Alberto Rojas
uCMDB Engineer
allan-alberto.rojas.vargas @microfocus.com



0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Enrichment rule for software, that is no longer installed

Jump to solution
I have already opened a support ticket, but the support can not help me (at least that's what the support told me)
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enrichment rule for software, that is no longer installed

Jump to solution

The main problem is why the Inventory adapter doesn't delete the installedSW which is no longer reported.

I would suspect that the probe cache isn't properly performing or we don't send the old cmdbIDs to the probe.

Would be interesting if it will work on a freshly deployed probe with only a few IP defined on it. Install some SW on the node, do discovery, uninstall that SW and redo discovery. If it works as designed then we have a maintenance issue on the old probes. If not then we will have to debug the auto-deletion mechanism.

As a short term solution, a cleanup script can be adapted from the adapter Remove Expired ExecutionEnvironment links.

 

Kind regards,
Bogdan Mureșan
EMEA CMS Technical Success
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Enrichment rule for software, that is no longer installed

Jump to solution
Hello Bogdan,

thanks for your post.

The "Inventory Discovery by Manual Scanner" job doesn't support the removal by design.That's the result from Micro Focus support and from several other customers too. There are some articles in the knowledge base as well.

I created an Idea Exchange (https://community.microfocus.com/t5/CMS-Idea-Exchange/Enhance-Inventory-Discovery-by-Manual-Scanner-delete/idi-p/2703478) to support the removal of affected CIs (e.g. Installed Software).

Unitl there is no OOTB solution, I need an enrichment rule, but I'm not able to create it. I made a few tries.

The support does not want to help me, because they say that would be a job of Professional Services. This is a pity.

Regards
Achim
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enrichment rule for software, that is no longer installed

Jump to solution

If autodeletion is not supported then why do we have the options to delete certain CITs?

What documents for this know issue did you receive?

 
 
Kind regards,
Bogdan Mureșan
EMEA CMS Technical Success
0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enrichment rule for software, that is no longer installed

Jump to solution

inventory-source.PNGAlso, in the adapter source code we have the result mechanism declared

<resultMechanism isEnabled="true">
<autoDeleteCITs isEnabled="true">
<candidateForDeletionCIT>cpu</candidateForDeletionCIT>
<CIT>dir</CIT>
<CIT>display_monitor</CIT>
<CIT>file_system</CIT>
<CIT>installed_software</CIT>
<CIT>osuser</CIT>
<candidateForDeletionCIT>running_software</candidateForDeletionCIT>
<candidateForDeletionCIT>usage</candidateForDeletionCIT>
<CIT>windows_service</CIT>
</autoDeleteCITs>
<automaticTouch isEnabled="true" />
</resultMechanism>

Kind regards,
Bogdan Mureșan
EMEA CMS Technical Success
0 Likes
Highlighted
Super Contributor.
Super Contributor.

Re: Enrichment rule for software, that is no longer installed

Jump to solution
Hello Bogdan,

I think you refer to a different discovery job. I'm writing about the "Inventory Discovery by Manual Scanner" and you about the "Inventory Discovery by Scanner".
Thats a difference.
Here are some links about the issue:
https://softwaresupport.softwaregrp.com/doc/KM01744875
https://softwaresupport.softwaregrp.com/doc/KM03476130
https://softwaresupport.softwaregrp.com/doc/KM03485464
https://community.microfocus.com/t5/CMS-Discovery-CMDB-User/Inventory-Discovery-by-Manual-Scanner-deletes-CI-s/m-p/2688572#M19996
Regards
Achim

View solution in original post

Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Enrichment rule for software, that is no longer installed

Jump to solution
You are right. Manual scanner doesn't have the autodeletion mechanism.
Maybe a pseudo-discovery job like Remove old ExecutionEnvironment Links can handle such discrepancies but it has to be written from scratch.
Kind regards,
Bogdan Mureșan
EMEA CMS Technical Success
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.