|
|
 |  |
Re: Radius log file importing.From: Stathy G. Touloumis Date: Sunday, August 2, 1998
Time: 6:43:06 pmI have a radius parser perl script that is located at:
http://www.triathlon.to/utils
You can view the files and download the gzipped file to install on your
system. Please be sure to backup any files before running to make sure
it runs smoothly on your system since I busted this out in the last hour
or so.
What it basically does is copy your radius file to a backup file while
parsing through the data and storing the user information into a hash
database. You set the appropriate variables in usrmon.cf file to suit
your system. It will read the standard detail file every hour from cron
(should be run from cron). It makes sure that the radius file was
modified within an hour or it will not bother parsing it. At the date
specified, it will:
gzip the completed radius file for the month
create the appropriate comma delimited file
clear the hash database and radius file for next months parsing
I also included a small script to read the hash database and print the
user information to standard output for viewing. I am sure I covered
mostly everything. I have not included the secondary times since I am
not sure what this is for or the httpd transfer info.
Please feel free to send me any comments, corrections, or
improvements. I will try to fix anything if I have the time. I hope
this helps some of you looking for a radius log parser.
Thanks,
--
Stathy Touloumis, CTO - JASKE.COM 'innovative I/net'
JASKE.COM - 3555 W. Peterson Ave. Chicago IL 60659
___________________________________________________
http://www.jaske.com - info@jaske.com - support@jaske.com
|

Return to Digital Point Solutions' Home Page |