[RADIATOR] AM or PM strings into accounting file name
Alby
alby26 at gmail.com
Tue Feb 12 04:32:30 CST 2013
Ciao Hugh! :)
Thanks for your prompt response! I will try your solution asap!
Grazie!
Alberto Albesiano
2013/2/12 Hugh Irvine <hugh at open.com.au>
>
> Ciao Alby -
>
> You can either use the %{SQL:….} special character if you are using an SQL
> database, or write a little hook to generate a pseudo-attribute in the
> current request.
>
> See section 5.2 in the Radiator 4.11 reference manual, and/or the example
> hooks in "goodies/hooks.txt".
>
> regards
>
> Hugh
>
>
> On 12 Feb 2013, at 20:59, Alby <alby26 at gmail.com> wrote:
>
> > Dear all,
> >
> > My need is to add the strings "AM" or "PM" to the Radiator's accounting
> file name because I need to generate two accounting files at day, one that
> contains the accounting entry from 00:00 to 12:00 and one from 12:00 to
> 00:00. In my opinion the best way to do this is to include the string AM or
> PM in the accounting file name, so I can have
> > tot_YYYYMMDD_AM.acct and
> > tot_YYYMMDD_PM.acct.
> > I've noticed the %p option in the Radiator manual, but this is used for
> SQL date format. When used into AcctLogFileName, it prints the Timestamp
> second (0-59), and this is not my goal.
> > By the way, I'm still using Radiator 4.9
> >
> > Could anyone help me?
> > Thank you very much!
> > Alberto Albesiano
> >
> > _______________________________________________
> > radiator mailing list
> > radiator at open.com.au
> > http://www.open.com.au/mailman/listinfo/radiator
>
>
> --
>
> Hugh Irvine
> hugh at open.com.au
>
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
> Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
> TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
> DIAMETER etc.
> Full source on Unix, Windows, MacOSX, Solaris, VMS, NetWare etc.
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.open.com.au/pipermail/radiator/attachments/20130212/ac76a4a4/attachment.html
More information about the radiator
mailing list