Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

How to remove package history in merged duplicates

OCS Server 2.1.2
OCS Agent 2.1.1.2
CentOS 6.5

I currently have OCS Inventory configured to merge duplicate computers based on serial, mac and uuid. My main purpose for this is when a computer comes back in and is redeployed with a fresh image and new hostname, I don't want to have to delete the old record in OCS and then have to reconnect this computer to the record in GLPI. The problem I have is that when the freshly imaged computer checks into GLPI and is merged with the older entry, the package history remains. This results in the new image not being assigned packages that it needs. Is there a way to automatically wipe the package history when merging duplicates?

Alternatively, could I delete the older duplicate entry rather than merging it with the newly imaged computer? That might be a more straightforward way of sidestepping this problem.
in OCS Inventory NG server for Unix by (120 points)

1 Answer

0 votes
try to edit in the client c:\programData\OCS Inventory NG\Agent\history and leave only the ids of installed packages you don't want to deploy again.
by (320 points)
 
Powered by Question2Answer
...