• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Cron with freeradius2 reset counter command

Scheduled Pinned Locked Moved pfSense Packages
2 Posts 2 Posters 1.7k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    Alan87i
    last edited by Jul 4, 2012, 4:30 PM

    Following these instructions

    So if you would like to reset the counter daily at midnight you need to manually add a cron job. Easiest way to do so is to install the "Cron" package from pfSense package manager: Reset everyday at midnight:

    minute hour mday month wday who               command
    *      *  0              *    *          root    /bin/rm /var/log/radacct/datacounter/daily/used-octets-*

    I have done this and nothing seems to reset , how ever if I execute the command manually in PF it works.
    I left it running two nights in a row and the users still had the same amount of used bandwidth.
    cron.JPG
    cron.JPG_thumb

    1 Reply Last reply Reply Quote 0
    • N
      Nachtfalke
      last edited by Jul 4, 2012, 9:09 PM

      probably my mistake in the wiki. Try this.

      
      minute   hour    mday    month    wday          who                   command
      *          0        *     *          *          root        /bin/rm /var/log/radacct/datacounter/daily/used-octets-*
      
      

      Should reset the counter at 0 o'clock

      1 Reply Last reply Reply Quote 0
      2 out of 2
      • First post
        2/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received