Provided by: freeradius-common_2.1.10+dfsg-3build2_all
radsqlrelay - relay SQL queries to a central database server
radsqlrelay [-d sql_driver] [-b database] [-f file] [-h host] [-u user]
[-p password] [-1] file_path
radsqlrelay tails a SQL logfile and forwards the queries to a database
server. Used to replicate accounting records to one (central) database,
even if the database has extended downtime.
The SQL logfile is created by the rlm_sql_log module. The module must
be configured in the radiusd server before you can use radsqlrelay.
Driver to use: mysql, pg, oracle.
Name of the database to use.
Read password from file, instead of command line.
Connect to host.
User for login.
Password to use when connecting to server.
-1 One-shot mode: push the file to database and exit.
The pathname of the SQL logfile to use.
The command "radsqlrelay -d oracle -b db.domain.tld sql-relay" reads
the database description stored in $TNS_ADMIN/tnsnames.ora:
(ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521))
(SERVICE_NAME = <DB SID>)
Nicolas Baradakis <email@example.com>
19 June 2005 RADSQLRELAY(8)