We do something similar to this, actually. However, while we used to run a
query against the database, something changed with the upgrade to 4.0 that
caused that to stop working. They'd be listed as "unregistered" in the
database, but still have access.  I was able to put together a pfcmd
command that would do it, though. Here's what I have:

/usr/local/pf/bin/pfcmd node edit [mac address]
status="unreg",unregdate="[datetime in YearMonthDayHourMinuteSecond format]"


We use a Perl script to generate the list of Mac addresses, and then loop
through them with this command.

Thanks,
Joshua Nathan
IT Administrator
Black Forest Academy
+49 (0) 7626-916123


On Sun, May 24, 2015 at 4:04 PM, Jason 'XenoPhage' Frisvold <
[email protected]> wrote:

> > On May 22, 2015, at 18:17, Mr J Potter <[email protected]>
> wrote:
> >
> > Hi Jason,
> >
> > Did you find a way of doing this? I need to deregister all users
> periodically (plan is 7 times a day), and being able to do this via cron
> would be great.
>
> There's no built-in way to do this easily, but you can manipulate the
> database and perform the same process.  Just build a query that finds the
> devices you're looking to deregister and then put them all in a state of
> unregistered.
>
> That said, it may be worth re-thinking things a little.  The automatic
> mechanisms within Packetfence are pretty good.  You can probably set the
> timers for 7 days and have the system handle this for you.
>
> > thanks,
> >
> > Jim Pott
>
> Jason 'XenoPhage' Frisvold
> [email protected]
>
> ------------------------------------------------------------------------------
> One dashboard for servers and applications across Physical-Virtual-Cloud
> Widest out-of-the-box monitoring support with 50+ applications
> Performance metrics, stats and reports that give you Actionable Insights
> Deep dive visibility with transaction tracing using APM Insight.
> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
> _______________________________________________
> PacketFence-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/packetfence-users
>
------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to