<div>Alan,</div>
<div> </div>
<div>I'm not sure I understand what you mean with the following statement.</div>
<div> </div>
<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! :-)"</div>
<div> </div>
<div>The particular part is (if present!). Can you by chance explain that part or see my previous post concerning a new table?</div>
<div> </div>
<div>Appreciate the feedback.</div>
<div>N<br><br></div>
<div class="gmail_quote">On Mon, Jun 7, 2010 at 1:03 PM, Natr Brazell <span dir="ltr"><<a href="mailto:natrbrazell@gmail.com">natrbrazell@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">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>
<font color="#888888"><br>N <br></font>
<div>
<div></div>
<div class="h5"><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" target="_blank">A.L.M.Buxey@lboro.ac.uk</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: rgb(204,204,204) 1px solid; MARGIN: 0pt 0pt 0pt 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi,<br>
<div><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><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><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></div></div></blockquote></div><br>