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.9.1 available

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

duplicates after renaming

when i rename computers, why it gets duplicated in ocs ?
Why the computer does not automatically rename itself in ocs?

in OCS Inventory NG server for Windows by (1.3k points)

2 Answers

0 votes


Has anyone encountered this problem before?
and have a solution? :)
Thanks !

by (1.3k points)
0 votes

Before asking, you could think how OCS work ...

When an agent run on a computer for the first time, it calculate an identifier like 'hostname-2022-05-02-15-19-21', save it and send inventory to the server. (For the first time means agent check if identifier exist in data folder)

The server create a row in table 'hardware' with field DEVICEID = identifier, and also a field with hostname.

That's means

- first, if you unistall agent (and clear all data) and reinstall agent, the identifier is erased so a new will be calculate and a duplicate appears, (when you upgrade, the identifier is not erased and no duplicate)

- second, the DEVICEID include hostname, so before change it, you have to consider to remove the hardware !

If you look 'activity.log', you can see the DEVICEID on each lines ...

by (7.5k points)
edited by
Powered by Question2Answer