<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
> Subject: Re: Freeradius accounting issues<br>> From: a.cudbardb@googlemail.com<br>> Date: Fri, 6 Aug 2010 15:19:24 -0700<br>> To: freeradius-users@lists.freeradius.org<br>> <br>> <br>> On Aug 6, 2010, at 3:12 PM, Marinko Tarlac wrote:<br>> <br>> > Or you can simple make small changes in SQL queries for accounting and you won't need to use unlang...<br>> <br><br>What do you have exactly in mind?<br><br>> <br>> I guess if you really just want to:<br>> "update this entries after a certain time has pass"<br>> <br><br>I have thinking in that these days that option too.<br><br>> Then that's easy enough with a simple update query, however it's generally a bad idea to just close out sessions because they've run on too long. Unless of course you don't care about the accuracy of your accounting database.<br>> <br>> -Arran<br>> <br>> > <br>> > <br>> > <br>> > Arran Cudbard-Bell wrote:<br>> >> Actually, option 4. If your NAS supports interim updates, you can add an additional field to the accounting database, and update the timestamp in this field every time an interim update packet is received. Then run a cron job to check for timestamps which are older than the interim update period and close those entries.<br>> >> <br>> >> You can do the updates with unlang and SQL xlat.<br>> >> <br>> >> -Arran<br>> >> <br>> >> <br>> >> On Aug 6, 2010, at 2:53 PM, Siryx XL wrote:<br>> >> <br>> >>> Hi everyone.<br>> >>> <br>> >>> I got freeradius to AAA the access to a Cisco Routers.<br>> >>> <br>> >>> If for some reason you disconnect because the router power off, an accounting finish packets is not sent to my radius, so in the DB looks like the user is still logged in....<br>> >>> <br>> >>> an example:<br>> >>> <br>> >>> mysql> select radacctid,username,acctstarttime,acctstoptime from radacct where username = "jhon.doe" and acctstarttime > "2010-08-05 07:45:30";<br>> >>> +-----------+-----------------+----------------------+-------------------------+<br>> >>> | radacctid | username | acctstarttime | acctstoptime |<br>> >>> +----------- +-----------------+---------------------+-------------------------+<br>> >>> | 93760 | jhon.doe | 2010-08-05 07:45:31 | NULL | | 93761 | jhon.doe | 2010-08-05 07:45:50 | NULL | | 93762 | jhon.doe | 2010-08-05 07:52:23 | NULL | <br>> >>> <br>> >>> <br>> >>> What can I do to update this entries after a certain time has pass, or do something else so fix those entries? <br>> >>> Thanks in advance.<br>> >>> -<br>> >>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html<br>> >> <br>> >> ------------------------------------------------------------------------<br>> >> <br>> >> -<br>> >> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html<br>> > <br>> > -<br>> > List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html<br>> <br>> <br>> -<br>> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html<br> </body>
</html>