These management commands are necessary for enabling certain features and for database cleanup.
cd tests/ ./manage.py <command> <args>
In this page we list the management commands currently available in django-freeradius.
This command deletes RADIUS accounting sessions older than
./manage.py delete_old_radacct <days>
./manage.py delete_old_radacct 365
This command deletes RADIUS post-auth logs older than
./manage.py delete_old_postauth <days>
./manage.py delete_old_postauth 365
This command closes stale RADIUS sessions that have remained open for
the number of specified
./manage.py cleanup_stale_radacct <days>
./manage.py cleanup_stale_radacct 15
This command deactivates expired user accounts which were created temporarily (eg: for en event) and have an expiration date set.
This command deletes users that have expired (and should have been deactivated by
deactivate_expired_users) for more than the specified
./manage.py delete_old_users --older-than-months <duration_in_months>
Note that the default duration is set to 18 months.