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... ;)
Sun Mar 23 14:44:24 1997
Acct-Session-Id = "3D005667"
User-Name = "bob"
Client-Id = 199.166.232.15
Client-Port-Id = 18
Acct-Status-Type = Start
Acct-Authentic = RADIUS
User-Service-Type = Framed-User
Framed-Protocol = PPP
Framed-Address = 199.166.232.110
Acct-Delay-Time = 0
Sun Mar 23 14:46:07 1997
Acct-Session-Id = "3D005667"
User-Name = "bob"
Client-Id = 199.166.232.15
Client-Port-Id = 18
Acct-Status-Type = Stop
Acct-Session-Time = 102
Acct-Authentic = RADIUS
User-Service-Type = Framed-User
Framed-Protocol = PPP
Framed-Address = 199.166.232.110
Acct-Delay-Time = 141
Maybe I don't very well understand these logs but it clearly shows to me
that bob
was connected for -39 seconds. (102 - 141).
Is that what these logs means?
I understand that the Acct-Delay-Time represent the delay it took for the
Radius Request to be accepted by the Radius Server. The Date do not
represent the Login/Logout Event but the date the server got the request.
If I substract the two dates, it indicate a total Login time of 103
seconds. Since the Logout time is not good because the Acct-Delay-Time is
greater than zero, I adjust the Logout Date.
Sun Mar 23 14:46:07 1997
- 141 seconds
==========================
Sun Mar 23 14:43:46 1997
So he logged in at
Sun Mar 23 14:44:24 1997
and logged out at
Sun Mar 23 14:43:46 1997
hummm! That can't be right!
If that's not what it means, can you offer me an explanation?
Any tips from anyone would be apreciated.
Christian Roy
///
(. .)
---oOO-(_)--OOo---
roychri@total.net
Programmer Analyst
TotalNet (Accent Internet)
1-800-920-SURF
(514)481-2585
Christian Roy
///
(. .)
---oOO-(_)--OOo---
roychri@total.net
Programmer Analyst
TotalNet (Accent Internet)
1-800-920-SURF
(514)481-2585