<div dir="ltr">Hi<div>I did setup a max monthly quota check to limit the amount of B/W used by a user. The test worked, BUT only after a user disconnects and reconnects. While a user is connected he can go over limit and keep doing so. I did do some reading and obviously the reason is that in radacct acctinputoctets and acctoutputoctets are only set with a stop signal.</div>
<div><br></div><div>Quote : </div><div><p style="margin-top:0pt;font-family:Verdana;margin-bottom:5pt;font-size:13px;color:rgb(0,0,0)">This attribute indicates how many octets have been received from the port over the course of this service being provided, and can only be present in Accounting-Request records where the Acct-Status-Type is set to Stop.</p>
</div><div><br></div><div>My setup is quite simple ,I do use the below. Now the question is , is there another approach to overcome this limitation ? Or can I force a Acct-Status refresh of some sort without disconnecting users ?</div>
<div><br></div><div>
<p class="">sqlcounter daily-BW-counter {</p>
<p class=""> counter-name = Daily-Session-Octets<br></p>
<p class=""> check-name = Max-Daily-Octets</p>
<p class=""> reply-name = Session-Timeout</p>
<p class=""> sqlmod-inst = sql<br></p>
<p class=""> key = User-Name</p>
<p class=""> reset = daily</p>
<p class=""><br></p>
<p class="">query = "SELECT SUM(AcctInputOctets) + SUM(AcctOutputOctets) FROM radacct WHERE UserName='%{%k}' AND UNIX_TIMESTAMP(AcctStartTime) + AcctSessionTime > '%b'"</p>
<p class=""><br></p>
<p class=""><br></p>
<p class=""><br></p>
<p class="">}</p></div></div>