Re: Freeradius accounting summary

2002-12-28 Thread Kostas Kalevras
On Thu, 26 Dec 2002, [iso-8859-2] Mariusz Bo?ewicz wrote:

> Hi
> I'd like to have summary accounting information about NAS users. I thought
> that counter module gives me somthing like this. For test I used cisco
> router with test account on it and I  turned on (?)
> aaa new-model
> and
> aaa accounting exec default group radius
>
> In freeradius server I used defult configuration of counter module except
> allowed-servicetype, which now looks like:
> allowed-servicetype=Login-User
>
> I try to login on cisco router many times, in
> var/log/radius/raddact/detail-...
> I have any information about login, but length of db.counter doesn't change.
> What might be a problem?

Could you post an exec accounting record (stop packet) from your router? That
record should contain an Acct-Session-Time attribute for things to work properly.

>
> regards
>
> Mariusz Bozewicz
>
>
> -
> List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
>

--
Kostas Kalevras Network Operations Center
[EMAIL PROTECTED]  National Technical University of Athens, Greece
Work Phone: +30 210 7721861
'Go back to the shadow' Gandalf

- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Re: Freeradius accounting summary

2002-12-26 Thread Mariusz Bożewicz

- Original Message -
From: "Mariusz Bożewicz" <[EMAIL PROTECTED]>

> Hi
> I'd like to have summary accounting information about NAS users. I thought
> that counter module gives me somthing like this. For test I used cisco
> router with test account on it and I  turned on (?)
> aaa new-model
> and
> aaa accounting exec default group radius
>
> In freeradius server I used defult configuration of counter module except
> allowed-servicetype, which now looks like:
> allowed-servicetype=Login-User
>
> I try to login on cisco router many times, in
> var/log/radius/raddact/detail-...
> I have any information about login, but length of db.counter doesn't
change.
> What might be a problem?

I list db.counter file using perl:
use GDBM_file;
tie %hash, "GDBM_File",$filenam,$GDBM_WRCREAT,0640
  or die "couldn't open $filenam"

while (($key,$value)=each %hash)
{
print $key.' = '.$value.' \n';
}
untie %hash;

this script writes on stdout nothing about my test account. It writes only
sth like this:
[plachnina@matrix ownprogram]$ ./dbcount.pl ../etc/raddb/db.counter
DEFAULT1 = đ
>\nDEFAULT2 = _
   >\n[plachnina@matrix ownprogram]$
[plachnina@matrix ownprogram]$ ls -l ../etc/raddb/db.counter
-rw---1 plachnin users   12312 Dec 26 20:57
../etc/raddb/db.counter


Mariusz Bozewicz


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html



Freeradius accounting summary

2002-12-26 Thread Mariusz Bożewicz
Hi
I'd like to have summary accounting information about NAS users. I thought
that counter module gives me somthing like this. For test I used cisco
router with test account on it and I  turned on (?)
aaa new-model
and
aaa accounting exec default group radius

In freeradius server I used defult configuration of counter module except
allowed-servicetype, which now looks like:
allowed-servicetype=Login-User

I try to login on cisco router many times, in
var/log/radius/raddact/detail-...
I have any information about login, but length of db.counter doesn't change.
What might be a problem?

regards

Mariusz Bozewicz


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html