/var/radius/data/accounting file
The /var/radius/data/accounting captures what the client sends in the ACCOUNTING START and ACCOUNTING STOP packets.
The /var/radius/data/accounting file is empty when first installed. Data is written to the file based on what the client sends in the ACCOUNTING START and ACCOUNTING STOP packets.
The following is a sample of the type of data the AIX® RADIUS server writes to the /var/radius/data/accounting file. Your information will differ depending on how your system is set up.
Note:
- Be sure the /var filesystem is large enough to handle all the accounting data.
- Third-party Perl scripts can be used to parse the data in this file. Examples of scripts that generate reports from the accounting data can be found at http://www.pgregg.com/projects/radiusreport
- The accounting packets can also be proxied.
Thu May 27 14:43:19 2004
NAS-IP-Address = 10.10.10.1
NAS-Port = 1
NAS-Port-Type = Async
User-Name = "rod"
Acct-Status-Type = Start
Acct-Authentic = RADIUS
Service-Type = Framed-User
Acct-Session-Id = "0000000C"
Framed-Protocol = PPP
Acct-Delay-Time = 0
Timestamp = 1085686999
Thu May 27 14:45:19 2004
NAS-IP-Address = 10.10.10.1
NAS-Port = 1 <-- rod was physically connected to port #1 on the hardware
NAS-Port-Type = Async
User-Name = "rod"
Acct-Status-Type = Stop
Acct-Authentic = RADIUS
Service-Type = Framed-User
Acct-Session-Id = "0000000C" <-- note the session id's are the same so can match up start with stops
Framed-Protocol = PPP
Framed-IP-Address = 10.10.10.2 <-- IP address of user rod
Acct-Terminate-Cause = User-Request <-- user cancelled the session
Acct-Input-Octets = 4016
Acct-Output-Octets = 142
Acct-Input-Packets = 35
Acct-Output-Packets = 7
Acct-Session-Time = 120 <--- seconds
Acct-Delay-Time = 0
Timestamp = 1085687119 <--- note "rod" was only logged on for 120 seconds (2 minutes)