On Sep 28, 2016, at 10:34 AM, Morris, Andi <[email protected]> wrote:

Hi Louis,
That makes sense, but in practice I get errors when running this on a server that hasn’t had packetfence installed as there are calls to log4perl.pm files in the database-clearner.pl script.
 

You would need to edit it to fill in some variables, like the db name, username and password.
Don't be afraid to play with the script. 
There's nothing really fancy in there.


Out of interest, what’s the danger of running this script from a packetfence server against a remote db server? Is it likely to cause an issue?


The issue is that it would have to copy the database over the network and dump the copy on the server you are running it from.
While that is doable, it is not really recommended.
You might end up saturating the link between those two servers during the dump.

Regards,
--
Louis Munro
[email protected]  ::  www.inverse.ca 
+1.514.447.4918 x125  :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org)

------------------------------------------------------------------------------
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to