Rahul Panwar wrote:
Thanks for a quick response,

 > You can't. FreeRadius has no such facility.

> Use a database server, or write a script process the radacct file. You can put accounting into both the radacct & database if you want.

What is the use of Acct-Interim-Interval? Is it not possible to get the update using this? Is it the received from radius server as a Authentication/Accounting response? or NAS has to send it as a request?


Acct-Interim-Interval is a value, sent from the radius server to the NAS, in the authentication response.

It instructs the NAS to send interim accounting packets to the radius server, at the interval given. For example:

NAS: access-reqest
Srv: access-accept Acct-Interim-Interval = 300 (5 minutes)
NAS: Accounting-Start
<300 second gap>
NAS: Accoounting-Alive inbytes=10000 outbytes=10000
<300 seconds gap>
NAS: Accoounting-Alive inbytes=20000 outbytes=20000

...

NAS: Accounting-Stop


If the radius server doesn't give Acct-Interim-Interval, the NAS may have a default value, or may not send interim accounting at all.

To repeat the answer to your original question: there is no mechanism in radius (or extension in FreeRadius) for a NAS to query a radius server for accounting.

Accounting is one-way - NAS -> Radius server.

You will need to use another method (query the files, or query a database) to do what you asked.
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to