purge_unknowns.php

It may happen that unknown systems start filling up the database. In order to purge those unassigned systems sitting in the database, the script purge_unknowns.php was created. It deletes from the database unknown systems, defined by the config variable unknown_purge,  which are at least 10 days old.

For each unknown system older than unknown_purge days, a cascade delete is performed, removing all references to it from the database.

This script can be run from crontab as follows:

0   1    * * 1   /opt/nac/bin/purge_unknowns.php

This will purge unknowns from the database every Monday at 1:00AM.

Syndicate content