Re: Radius accounting

Phil Jensen - News Administrator (phil@sierra.valleynet.com)
Wed, 29 Nov 1995 07:36:39 -0800 (PST)

I have something like this, written in Perl that does a foreach $user (`ls
/usr/adm/radacct`) that will process every Portmaster, and split by each
of them--using a bit of code from raquick--and in plain seconds, also.
It will also total the hms and seconds for each user for all the
Portmasters.

I also have a lastlog utility which (written in Perl also) will utilize
all of your detail files to let you know when a users last logins were,
letting you know if he logged in via PPP/SLIP, which port, which
Portmaster, what time and for how long. If ya want 'em, I'll throw them
up at ftp://valleynet.com/pub/admin/phil/acct (and das). And--if you
like them, email me. :) :)

Sincerely,

Phil Jensen _\\|//_
News Administrator/JAPH (-0-0-)
---------------------------------------------------------------ooO-(_)-Ooo----
ValleyNet Communications - Central California's Premier Internet Provider
------------------------------------------------------------------------------
Voice: (209) 486-VNET (8638) 2300 Tulare, Suite 100
Fax: (209) 495-4940 Fresno, CA 93721-2226
Data: (209) 495-4950 http://www.valleynet.com
==============================================================================

On Wed, 29 Nov 1995, Mark Shapiro wrote:

> I wrote a program that processes the /var/adm/radacct/(portmastername)/detail
> file and extracts total connection time for each RADIUS authenticated
> account, and prints out a list with total connection time <in h/m/s, not
> just seconds>, and a bill based on base-hours, base-charge, and hourly-rate.
> If you're interested, drop me a note and I can send you a copy of it. Keep
> in mind it's not a professional program <though I am a professional
> programmer>, it's just something I whipped up to make my life easier. I'll
> get around to writing a real program for it sometime after the new year.
>