[Radiuscontext-discuss] Automation of monthly reports...
Mike Cisar
mcisar@starmania.net
Thu, 2 May 2002 18:38:11 -0600
> My understanding is, you want to do something like:
> raddetail -d SessionData-`date +%m` [...]
> However, if you want it to work for more than the next 7
> months without intervention, you'll probably want to do:
> raddetail -d SessionData-`date +%Y-%m` [...]
Thanks a lot Sean... that gives a pretty good start, I'll give it a try.
Yes definitely the year is a maintenance issue, but as I understand it
FreeRadius (admittedly I haven't delved all that deep into that part as
yet) is currently missing the ability to flag the year into their
filename (I guess that gives me 7 months to hound them :-) [Just a
thought, does the report destination directory have to exist, or
will/can it be created on the fly?]
> If the time period you want to send the data for matches the
> month splits, then it's easy enough just to pull their
> current data, of course. It sounds like that's not what
> you're looking for though.
Technically all we really "need" is the usage for the current month.
Ideally in the future "we'd" like to implement it into something
flexible where users can pick a start date and end date (covering a
week, month, 2 years, whatever) and then generate a usage report based
on that range although personally I'm not convinced that something this
advanced is useful in the least... it would seem to me that giving the
user the ability enough to pull data for a given month (either on the
fly or from the pre-generated reports that we already have on file)
should be more than sufficient. When it comes down to it, why anyone
cares how much time they are using on unlimted time accounts boggles my
mind :-)
Cheers,
>>>>> Mike <<<<<