Generating Reports
This section details the command-line flags necessary to instruct RadiusReport to generate specific types of reports. Table 7-1 lists the various parameters that can be issued to the program at runtime.
|
Parameter |
Function |
-f |
Designates the raw log file from which to create the report |
-h |
Creates report without header and footer text |
-I |
Generates a report on IP addresses |
-l |
Specifies a user; use |
-o |
Creates individual report files for each user |
-r |
Generates a report on the most recent login times |
-tba |
Generates a full, detailed report |
-tbac |
Generates a full, detailed report with telephone company cost analysis |
Example reports
The following command produces a minimal report for a specific user:
radiusreport -l rneis -f /var/adm/radacct/ptmstr-clt-1/detail
The resulting report looks similar to this:
Radius Log Report for: rneis Date Login Logout Ontime Port ------------------------------------------------------------------------ 28/05/02 18:07:01 19:22:14 15m13s A3 29/05/02 10:36:18 11:26:37 50m19s A7
Issue the following command to produce a full report for a specific user:
radiusreport -tba -l rneis -f /var/adm/radacct/ptmstr-clt-1/detail
The result:
Radius Log Report for: rneis Date Login Logout Ontime Port BW-In/Out Total ------------------------------------------------------------------------ 28/05/02 13:18:19 13:38:07 19m48s A5 120.1K/309.3K 0h19m 28/05/02 22:32:24 23:32:17 59m54s A2 218.1K/1.7M ...