1RADSQLRELAY(8) FreeRADIUS helper program RADSQLRELAY(8)
2
3
4
6 radsqlrelay - relay SQL queries to a central database server
7
8
10 radsqlrelay [-d sql_driver] [-b database] [-f file] [-h host] [-u user]
11 [-p password] [-1] file_path
12
13
15 radsqlrelay tails a SQL logfile and forwards the queries to a database
16 server. Used to replicate accounting records to one (central) database,
17 even if the database has extended downtime.
18
19 The SQL logfile is created by the rlm_sql_log module. The module must
20 be configured in the radiusd server before you can use radsqlrelay.
21
22
24 -d sql_driver
25 Driver to use: mysql, pg, oracle.
26
27 -b database
28 Name of the database to use.
29
30 -f file
31 Read password from file, instead of command line.
32
33 -h host
34 Connect to host.
35
36 -u user
37 User for login.
38
39 -p password
40 Password to use when connecting to server.
41
42 -1 One-shot mode: push the file to database and exit.
43
44 file_path
45 The pathname of the SQL logfile to use.
46
47
49 Oracle driver
50 The command "radsqlrelay -d oracle -b db.domain.tld sql-relay" reads
51 the database description stored in $TNS_ADMIN/tnsnames.ora:
52
53 db.domain.tld =
54 (DESCRIPTION =
55 (ADDRESS_LIST =
56 (ADDRESS = (PROTOCOL = TCP)(HOST = db.domain.tld)(PORT = 1521))
57 )
58 (CONNECT_DATA =
59 (SERVICE_NAME = <DB SID>)
60 )
61 )
62
63
65 rlm_sql_log(5)
66
67
69 Nicolas Baradakis <nicolas.baradakis@cegetel.net>
70
71
72
73 19 June 2005 RADSQLRELAY(8)