# Session start
#
accounting Start {
+ #
+ # Log traffic to an SQL database.
+ #
+ # See "Accounting Queries" in `mods-available/sql`.
+ #
+ -sql
+
#
# Refresh leases when we see a start.
#
# Session stop
#
accounting Stop {
+ #
+ # Log traffic to an SQL database.
+ #
+ -sql
+
+ #
+ # If you receive stop packets with zero session length,
+ # they will NOT be logged in the database. The SQL
+ # module will print a message (only in debugging mode),
+ # and will return "noop".
+ #
+ # You can ignore these packets by uncommenting the
+ # following three lines. Otherwise, the server will not
+ # respond to the accounting request, and the NAS will
+ # retransmit.
+ #
+# if (noop) {
+# ok
+# }
+
#
# Return an address to the IP Pool when we see a stop record.
#
# Session is still alive
#
accounting Interim-Update {
+ #
+ # Log traffic to an SQL database.
+ #
+ -sql
+
#
# Refresh leases when we see an alive.
#
# The NAS has just booted up.
#
accounting Accounting-On {
+ #
+ # Record that the NAS has booted to an SQL database
+ #
+ -sql
+
#
# Return all addresses related to this NAS to the IP Pool
#
# The NAS is about to go down
#
accounting Accounting-Off {
+ #
+ # Record that the NAS is shutting down to an SQL database
+ #
+ -sql
+
#
# Return all addresses related to this NAS to the IP Pool
#
# radutmp
# sradutmp
- #
- # Log traffic to an SQL database.
- #
- # See "Accounting Queries" in `mods-available/sql`.
- #
- -sql
-
- #
- # If you receive stop packets with zero session length,
- # they will NOT be logged in the database. The SQL
- # module will print a message (only in debugging mode),
- # and will return "noop".
- #
- # You can ignore these packets by uncommenting the
- # following three lines. Otherwise, the server will not
- # respond to the accounting request, and the NAS will
- # retransmit.
- #
-# if (noop) {
-# ok
-# }
-
#
# Instead of sending the query to the SQL server in
# real-time, write it into a log file to be picked up and