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.

Delete hosts from list (API, console, SQL...)

Hi all,

We have about 15,000 hosts inventoried in the OCS. We need to perform a cleanup of hosts that have not reported their inventory for more than x days. This number exceeds 2,000. We have seen the option to delete old hosts, but there are certain old hosts that we don't want to delete because they actually do exist, but they present a problem when reporting their inventory to the server and we want to keep them.

We have taken a look at the internal structure of the DB and we have not located cascading deletion or definition of foreign keys.

In order not to have to click one by one in the console, could you tell me if there is any way to delete hosts by entering a list of names? Any automation would be valid, either from the web console, API, SQL query or any other.

  • Server version: 3.10.0-1062.4.3.
  • Agent version: 2.1.0.1

Any help would be very welcome. Thanks a lot.

in OCS Inventory NG server for Unix by (120 points)
edited by

Please log in or register to answer this question.

 
Powered by Question2Answer
...