restart accounting of an user wihout disconnecting

Radius related questions
Post Reply
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

restart accounting of an user wihout disconnecting

Post by psr »

Hi,
1) In accel-ppp, is there a cmd to send acoounting restart to FreeRadius Server without disconnecting the user.
means to say that without terminaing connection the user like terminate user.

OR
2) How do I do accounting every day without terminating any active user. As the usage is always linked to session_id, the carry over value to next day should be zeroised, otherwise yesterday's usage will also be added to today's usage if the user does not terminate the session. In essence I would like to zeroize the counters of interface or zeroise the counters sent to radius server. How is this achieved in accel-ppp? Can the interface statistics held by accel ppp be zeroized ? Any help is appreciaed
Last edited by psr on 11 Apr 2015, 08:55, edited 1 time in total.
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: restart accounting of an user wihout disconnecting

Post by Dmitry »

hi
please explain what you mean by "accounting restart"
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Re: restart accounting of an user wihout disconnecting

Post by psr »

for example user1 is connected in day1 his usage at end of the day 1000MB.
day2 sarts without disconnecting the session of day1.
Now i do "reset of accounting"(which i do not know how) then accel-ppp sends number of bytes consumed to radius server as zero not as "1000MB+ day2 bytes"

at present in day2 it is sending data of "day1 + day2" .
but i need only day2's data.

I am trying to find a way for this, can you point me a wayout for this please
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: restart accounting of an user wihout disconnecting

Post by Dmitry »

ok, i understand you
unfortunately, "accounting restart" is not implemented at present
the only way is terminate sessions explicitly or include Session-Timeout attribute to Access-Accept
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Re: restart accounting of an user wihout disconnecting

Post by psr »

thanks for the help,
include Session-Timeout attribute to Access-Accept
does that mean there will be redialing or reconnection from accel-ppp for an user, if user's session is active more than certain time session specified.

Thanks
Dmitry
Администратор
Posts: 954
Joined: 09 Oct 2014, 10:06

Re: restart accounting of an user wihout disconnecting

Post by Dmitry »

it will cause session termination
psr
Posts: 31
Joined: 07 Dec 2014, 06:37

Re: restart accounting of an user wihout disconnecting

Post by psr »

Thanks for the help.
Post Reply