pluginsGLPI / ocsinventoryng

Plugin ocsinventoryng for GLPI
GNU General Public License v2.0
68 stars 52 forks source link

Duplicate computers after upgrade #320

Closed rubberduck3000 closed 2 years ago

rubberduck3000 commented 2 years ago

Hi!

Plugin version 1.7.3 GLPI version 9.5.6 OCS version 2.9.2

After upgrade of ocs, glpi & OCS plugin some previously added computers start to appear as new. And even if I add them as new they appear again on next sync. Vendor, model & serial are all the same (see the example screenshot). OCS contains only one unique record for this computer. screen1

rubberduck3000 commented 2 years ago

The problem is not plugin but on OCS or OCS Agent side (not sure which one). After upgrading OCS Server and OCS Agent some id and deviceid fields in hardware table of ocs database were updated with new values. Unfortunately when I try to link "new" computers to existing one via plugin [Link new OCSNG computers to existing GLPI computers] it doesn't work. No new computers although there are some on Import new tab. So I just fixed it with UPDATE glpi_plugin_ocsinventoryng_ocslinks table.