Thanks for the help Alan,<br><br>I see what you mean now. I guess I assumed that the radacct database was more than a recording of session start and end times. Is there another table that I should be seeing user activity in? In other words I was thinking that user activity (ie. the commands they entered) would be logged somewhere in the sql tables vice in the /var/log/radius/radacct/IP_ADDR/detail_`date` file. Can I simply create a new table called for instance Acct_activity and modify the dialup.conf file to dump that data in that table keying on session-id and time for instance? I'm sure that's not supposed to be in the radacct table. btw: where do I comment out radutmp?<br>
<br>N <br><br><div class="gmail_quote">On Mon, Jun 7, 2010 at 11:56 AM, Alan Buxey <span dir="ltr"><<a href="mailto:A.L.M.Buxey@lboro.ac.uk">A.L.M.Buxey@lboro.ac.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi,<br>
<div class="im"><br>
><br>
> rad_recv: Accounting-Request packet from host x.x.x.120 port 51637, id=50, length=95<br>
> Acct-Status-Type = Interim-Update<br>
> Acct-Session-Id = "C2594B9A71DB"<br>
> Acct-Delay-Time = 0<br>
> User-Name = "joe.bobuser"<br>
> NAS-Identifier = "M20"<br>
> Juniper-Interactive-Command = "run start shell "<br>
> NAS-IP-Address = x.x.x.120<br>
> +- entering group preacct {...}<br>
> ++[preprocess] returns ok<br>
> [acct_unique] WARNING: Attribute NAS-Port was not found in request, unique ID MAY be inconsistent<br>
<br>
</div>your NAS is doing all sorts of things wrong really. its supposed to supply a NAS-Port and that value<br>
is supposed to change for each session. oh well. edit your modules/acct_unique to put something else<br>
into the hashing function<br>
<div class="im"><br>
> [radutmp] expand: /var/log/radius/radutmp -> /var/log/radius/radutmp<br>
> [radutmp] expand: %{User-Name} -> joe.bobuser<br>
> rlm_radutmp: No NAS-Port seen. Cannot do anything.<br>
> rlm_radumtp: WARNING: checkrad will probably not work!<br>
<br>
</div>are you using radutmp? if not, comment it out.<br>
<div class="im"><br>
<br>
> As can be seen above the rad_recv: section is sending back a few items that I am interested in having logged. For instance the Juniper-Interactive-Command.<br>
><br>
> Thanks if you can help or point me in the right direction.<br>
<br>
</div>simply add those attributes (if present!) into the SQL that create the accounting<br>
INSERT/UPDATE commands - sql/mysql/dialup.conf - and ensure the table is ready for them! :-)<br>
<br>
alan<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</blockquote></div><br>