Re: Radius Accounting Logs. Take 2!

Steven P. Crain (scrain@shore.net)
Tue, 29 Apr 1997 20:26:19 -0400 (EDT)

On Mon, 28 Apr 1997, Christian Roy wrote:

> Hi,
> Thank you for all previous answer a got from my question. I was able to
> understand my error and fix my programs.
> I have a new problem. Maybe someone can help me there!
>
> We are an Internet Service Provider in Montreal and some of our modem Banks
> are using Radius Authentication with Portmasters. We want to be able to
> charge users who use too many hours. We already have billing software that
> interprets our usage logs. For Example :
>
> Usage Log:
> Username StartDate StartTime StopDate StopTime LenghtOfCallInMinutes
>
> Example :
> bob 04/04/97 20:00:00 04/04/97 21:00:00 60
>
> I already wrote a C++ program that parses Radius logs and converts them
> into usage Logs. I verify the Acct-Delay-Time and adjust the
> 'Acct-Session-Time'.
> But, it won't work on this one! According to what I understand, this user
> got a usage time of -39 seconds. Hummm! I don't like that! I don't think
> that my billing software will like negative value... ;)

The Acct-Delay-Time can give you a rough approximate at best. On the
other hand, Acct-Session-Time will give you the precise amount of time the
person was on, without needing to adjust it.

----------------------------------------------------------------------------
Steven P. Crain scrain@shore.net http://www.shore.net/~scrain
Shore.Net Unix Development and Administration
An ISP with Excellence in the Greater Boston Area.