<html><body><div style="color:#000; background-color:#fff; font-family:verdana, helvetica, sans-serif;font-size:10pt"><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "><span>Hi Fajar,</span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div><span><font class="Apple-style-span" size="2">Thanks for your prompt response. This is really very helpful. I will try this at the first available opportunity.</font></span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "><span>Thanks</span></div><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "> </div><div style="font-family: verdana, helvetica, sans-serif; font-size: 10pt; "><span style="font-family: garamond, 'new york', times, serif; "><font size="3"><span
style="color:rgb(0, 0, 255);font-weight:bold;">Hitesh Vinzoda</span><br><span style="font-weight:bold;color:rgb(0, 0, 0);">Network Administrator</span><br style="font-weight:bold;color:rgb(0, 0, 0);"><span style="font-weight:bold;color:rgb(0, 0, 0);">+91-9924117399<br><span style="color:rgb(0, 0, 255);text-decoration:underline;">www.vinzoda.in</span><br></span><br>"There are 10 types of people in this world.<br>One who can understand binary and other's can't."</font><br><br><br></span><br></div> <div style="font-size: 10pt; font-family: verdana, helvetica, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <font size="2" face="Arial"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Fajar A. Nugraha <list@fajar.net><br> <b><span style="font-weight: bold;">To:</span></b> Hitesh Vinzoda <hiteshvinzoda@yahoo.com>; FreeRadius users mailing list
<freeradius-users@lists.freeradius.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Saturday, 3 December 2011 6:38 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: Radacct update at 3 hours<br> </font> <br>On Sat, Dec 3, 2011 at 6:23 PM, Hitesh Vinzoda <<a ymailto="mailto:hiteshvinzoda@yahoo.com" href="mailto:hiteshvinzoda@yahoo.com">hiteshvinzoda@yahoo.com</a>> wrote:<br>> Hi all,<br>><br>> I get this working now. Thanks a lot to you guys. Now i want to test one<br>> more feature, i.e. Is there a way where we can set the accounting updates to<br>> be triggered at a specific time of a day e.g. everynight at 23:59. My gut<br>> feeling is this has to be configured on the NAS.<br><br>Short version: You can't. Don't bother. Really.<br><br>Long version:<br>There's two attributes that radius can send that MAY be able to do<br>what you want, in a rundabout fashion.<br><br>First one is
Session-Timout, which basically tells the NAS the maximum<br>time the session can last before the NAS have to cut it off<br>forcefully. In some types of connection (e.g. 3G, or ADSL with the<br>modem dialing) the client will then try to reconnect immediately, so<br>this might effectively have the same effect with what you want. You<br>can use unlang with sql expansion (mysql has some nice function for<br>date/time calculation) or exec to calculate the value of<br>Session-Timeout which would make the NAS drops the connection at<br>23:59.<br><br>The second one is Acct-Interim-Interval. Similar to above, you can<br>calculate Acct-Interim-Interval in a way that you'd get an<br>Acct-Interim packet at 23:59. For example:<br>- the client is connected on 06:00<br>- you want interim updates to be sent (roughly) every 3 hours<br>- If you set Acct-Interim-Interval to be 2 hours, 59 minutes and 10<br>seconds (i.e. 10750 seconds) the NAS should (hopefuly) send
an<br>Acct-Interim packet somewhere around 23:59.<br>- you can use unlang with sql or exec (same as above) to perform the<br>necessary Acct-Interim-Interval calculation, but it will be<br>complicated.<br><br>I suugest you don't bother with either. Really. Just set<br>Acct-Interim-Interval into something managable (e.g. 1 hour), and for<br>billing purposes just use whatever information available at that time<br>(e.g. use last Acct-Interim sent before 23:59).<br><br>-- <br>Fajar<br><br><br> </div> </div> </div></body></html>