After adding a new switch you need to bounce several of the Pf services, BUT if 
you bounce them all you will close the location logs on all the active 
connections and cause a heck of a lot of problems for your users : )

So, I wrote a little script that bounces the necessary services without closing 
the location logs.  I named it PacketFence_Warm_Reset.
It works in v3.5.1 and after as far as I know.

After you make your modifications through the webGUI or in your conf files just 
run this script to apply the updates.  PFv4 will probably make this script 
useless but it has worked wonders for me for a long time now.

Here is the script:

#! /bin/bash
echo
echo
echo Restarting pfsetvlan Service ...
/usr/local/pf/bin/pfcmd service pfsetvlan restart

echo
echo
echo Restarting NAMED Service ...
/usr/local/pf/bin/pfcmd service named restart


echo
echo
echo Restarting RADIUS Service ...
/usr/local/pf/bin/pfcmd service radiusd restart

echo
echo Restarting Apache Service ...
/usr/local/pf/bin/pfcmd service httpd restart

echo
echo Restarting SNMPTrapD Service ...
/usr/local/pf/bin/pfcmd service snmptrapd restart


echo
echo
echo DONE!


-----Original Message-----
From: Francois Gaudreault [mailto:[email protected]] 
Sent: Thursday, April 25, 2013 10:11 PM
To: [email protected]
Subject: Re: [PacketFence-users] Usage Questions

On 2013-04-25 4:20 PM, Jason 'XenoPhage' Frisvold wrote:
> - - How do you delete nodes?  I get an error about an entry in the 
> locationlog table.  Is there a way to clear that out, or should it be 
> cleared out over time, or...  ?  If I understand correctly, the way to 
> "kick" a user would be to tag them with a violation.  That's fine and 
> I don't have an issue with that.  But, we clean out our current NAC 
> system yearly to ensure any old systems are no longer listed and 
> wasting resources.  Is there a way to do this in Packetfence?
There is a flag in the configuration to allow cleanup. You can delete 
unregistered nodes that are older than X days,months,etc. Check in 
documentation.conf for the exact config.

--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect 
[email protected]
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to