Page 1 of 1
Clean up database and create bulk package (forgotten)
Published: March 16, 2017 - 11:36
by ryoken95
Hello,
following major changes to our infrastructure, I want to clean up the server database.
I want to delete all workstations to start with a clean database.
Is there a command for this? My server is running Debian.
Also, could you explain how to perform a bulk package deletion?
Thank you in advance for your help
. Ryo
Re: Cleaning database and creating a bulk package (forgotten)
Published: March 24, 2017 - 3:42 PM
by agauvrit
Good morning,
To clean up your server database and start from scratch, you can remove all workstations from the inventory; on the next reboot, they will reappear in the WAPT inventory.
Note: unless you delete the machine packages in /var/www/wapt-host, the machines will retrieve their machine package and their dependencies.
For a more radical solution, stop the waptserver and mongodb services, delete the hosts wapt database from mongodb, and then restart the mongodb and waptserver services
Code: Select all
systemctl stop waptserver
mongo
> use wapt;
> db.dropDatabase();
systemctl start waptserver
Regarding a "bulk forgetting" package, is that for the dependency list on each machine?
In this case, it is better to remove the machine packages on the server side and force their update, which will clear the dependency list for each machine.
To clean up the packages, which must be done manually using uninstallation calls, see our documentation:
https://www.wapt.fr/fr/doc/CreationPaqu ... aquet-wapt
Alexander