Unlang and variables

Alan DeKok aland at deployingradius.com
Fri Sep 29 14:10:44 CEST 2017

> On Sep 29, 2017, at 4:09 AM, Ti Ti <tt91em at gmail.com> wrote:
> Thanks.
> In case of counters how can I use the policy? Because I have to specify the
> db in sql_module_instance

  You will need to create multiple instances of the sql_counter module, and use that:

sqlcounter dailycountertime_db1 {
   sql_module_instance = db1

sqlcounter dailycountertime_db2 {
   sql_module_instance = db2


  and then reference "dailycountertime_db2" as the module to run inside of the "if" block.

  Alan DeKok.

More information about the Freeradius-Users mailing list