You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2024-05-04 19:54:08

rean1mator
Member
Registered: 2022-05-18
Posts: 4

CLI utility glpi:assets:cleansoftware

Hello!
1. Please tell me, if I want this utility to be guaranteed to clear the database of all available software versions with zero installations, what value should the -max parameter be set?

2. If the specified number in the -max parameter turns out to be greater than the number of zero versions, will the utility simply terminate its execution? For example: -max=1000000, and in the database the number of versions with zero installations was 95000. Will the delete 95000 utility stop and report that it deleted 95000 ?

Thank you in advance for your help!

PS
I apologize for my English: I am writing through a translator.

Offline

#2 2024-05-05 08:50:49

rean1mator
Member
Registered: 2022-05-18
Posts: 4

Re: CLI utility glpi:assets:cleansoftware

I'm answering my own question.
I found out empirically that:
1. The number for the -max parameter can be viewed by the number of records in the glpi_software versions database table and put a little more. Or just put some big number
2. When the utility deletes all versions with the number of installations equal to zero, it stops execution and displays how many items have been deleted.

Last edited by rean1mator (2024-05-05 08:51:41)

Offline

Board footer

Powered by FluxBB