Getting useful info from details file

Geoffrey Ellison (geoff@smartnet.co.za)
Wed, 22 Jan 1997 10:43:01 +0200

Greetings,

I'm fairly certain that what I am asking has been dealt with before -
it seems like a common enough question, but I'm new to the list and I
need to know.

I am using radius 2 with a separate authentication/accounting
server running on a linux box.
The information in the file
/var/adm/radacct/pm1.ourdomain.com/details
looks something like this:

Sun Mar 10 02:30:32 1996
Acct-Session-Id = "0E00000A"
User-Name = "someuser"
Client-Id = 192.168.0.2
Client-Port-Id = 0
Acct-Status-Type = Stop
Acct-Session-Time = 4225
Acct-Authentic = RADIUS
User-Service-Type = Framed-User
Framed-Protocol = PPP
Framed-Address = 192.168.0.20
Acct-Delay-Time = 0

My question is: how can I get useful information out of this file?
Ideally, I want to build or acquire bash scripts that can tell me
when a user last logged in/out, how long they were logged in for,
etc.

If anyone has done anything like this or can tell me how to do it, I
would appreciate hearing from you.

Geoff.
======================================================
_ _
<@ @>
+------oOO----(_)-------------+
| Geoffrey Ellison |
| Manager: Technical Services |
| SmartNet |
| geoff@smartnet.co.za |
+---------------------oOO-----+
\| |__|__| |/
|| ||
ooO Ooo

======================================================
PGP public key available on request.