0

Add a criteria to not update deleted computers

alexmothe 1 year ago updated 1 year ago 1

Currently, a computer in the trashbin continues to be updated by its inventory agent. This is especially problematic when the computer in the trashbin is a duplicate, and the other one that is not in the trashbin is therefore not updated by the inventory.

A workaround could be to put all the computers in the trashbin with a status of "Deleted", and to add a criterion "does not have the status Deleted" on all the import criterias "computer update".

Suggestion: Add an "is deleted" criteria for import rules.

As the massive edit on deleted computers isn't available, here is the SQL command to change status of all deleted computers: 

UPDATE glpi_computers SET states_id=#id_of_wanted_state# WHERE is_deleted=1;