Radius Stress testing
hi, i doing stress testing of my freeradius with help of perl script. when i run perl script i runs and gives output, but in log file it genrate an error Mon Oct 1 04:45:46 2012: Error: rlm_radutmp: No Accounting-Status-Type record. on each request and when i run radiusd in debug mode radiusd -X it it shows same error and not going in procedure... and shows rlm_detail: /usr/local/var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d:%H expands to /usr/local/var/log/radius/radacct/192.168.1.13/detail-20121001:05 modcall[accounting]: module "detail" returns ok for request 932rlm_radutmp: No Accounting-Status-Type record. modcall[accounting]: module "radutmp" returns noop for request 932 modcall[accounting]: module "sql" returns ok for request 932modcall: leaving group accounting (returns ok) for request 932Sending Accounting-Response of id 79 to 192.168.1.13 port 34641 ReturnCode = 1 User-Name = "82723EH5F7560"Finished request 932Going to the next request--- Walking the entire request list ---Cleaning up request 932 ID 79 with timestamp 50695ba0Nothing to do. Sleeping until we see a request. Please help me in this.. regardsRao Qasim
On Mon, Oct 1, 2012 at 4:27 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
when i run perl script i runs and gives output, but in log file it genrate an error
Mon Oct 1 04:45:46 2012 : Error: rlm_radutmp: No Accounting-Status-Type record.
Hmmm ... this kind of question seems to come up a lot. If you simply want that error gone, and you don't use "radlast", then just remove all reference to "radutmp" on sites-available/default, inner-tunnel, and whatever other virtual server that you use. -- Fajar
sir when i send accounting request using ntradping radius does not gives this error, i there any kind on fault in my scrip..?? #!/usr/bin/perluse Crypt::CBC;use Asterisk::AGI;use Authen::Radius;use DBD::mysql;use Thread;my $i;for ($i=1;$i<=20;$i++){my $thr = new Thread \&sub1;sleep(0.010);print $i;}sub sub1{my $j;my $r = new Authen::Radius(Host => '192.168.1.13:1813', Secret => 'testing123'); if( !defined $r ) { exit; }Authen::Radius->load_dictionary('/var/lib/asterisk/agi-bin/radius/raddict.dat');for ($j=1;$j<=5;$j++){ $r->add_attributes ( { Name => 'User-Name', Value => "82723EH5F75" }, { Name => 'Password', Value => "123456" }, { Name => 'Acct-Link-Count', Value => "111" }, { Name => 'Acct-Multi-Session-Id', Value => "NGI" }, { Name => 'Move-ID', Value => "4" }, { Name => 'Accounting-Type', Value => "1" }, { Name => 'Group-ID', Value => "0" } );$r->send_packet (ACCOUNTING_REQUEST) and $type = $r->recv_packet;print $j." ";}}
Date: Mon, 1 Oct 2012 16:33:23 +0700 Subject: Re: Radius Stress testing From: list@fajar.net To: freeradius-users@lists.freeradius.org
On Mon, Oct 1, 2012 at 4:27 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
when i run perl script i runs and gives output, but in log file it genrate an error:q
Mon Oct 1 04:45:46 2012 : Error: rlm_radutmp: No Accounting-Status-Type record.
Hmmm ... this kind of question seems to come up a lot.
If you simply want that error gone, and you don't use "radlast", then just remove all reference to "radutmp" on sites-available/default, inner-tunnel, and whatever other virtual server that you use.
-- Fajar - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
QASIM RAO wrote:
sir when i send accounting request using ntradping radius does not gives this error, i there any kind on fault in my scrip..??
Everything. You don't need to write a script to do load testing. "radclient" can do that. You need to send *correct* RADIUS packets. See the RFCs for details. This is not a script problem. Alan DeKok.
On Mon, Oct 1, 2012 at 5:02 PM, QASIM RAO <qasim2490@hotmail.com> wrote:
sir when i send accounting request using ntradping radius does not gives this error, i there any kind on fault in my scrip..??
Look at the debug log when you send packets using ntradping. Then make sure your script sends those attributes as well.
$r->add_attributes ( { Name => 'User-Name', Value => "82723EH5F75" }, { Name => 'Password', Value => "123456" }, { Name => 'Acct-Link-Count', Value => "111" }, { Name => 'Acct-Multi-Session-Id', Value => "NGI" }, { Name => 'Move-ID', Value => "4" }, { Name => 'Accounting-Type', Value => "1" }, { Name => 'Group-ID', Value => "0" } );
No Accounting-Status-Type (or Acct-Status-Type)? Selected lines from dictionary.rfc2866: ATTRIBUTE Acct-Status-Type 40 integer VALUE Acct-Status-Type Start 1 VALUE Acct-Status-Type Stop 2 VALUE Acct-Status-Type Alive 3 # dup VALUE Acct-Status-Type Interim-Update 3 Look at Authen::Radius documentation, find out what it calls AVP 40, and add it to your script. ... or, depending on what you use your benchmark for, it might not matter. Personally I just use radclient (with pre-generated attributes for input) or radperf for benchmark. -- Fajar
Hi,
sir when i send accounting request using ntradping radius does not gives this error, i there any kind on fault in my scrip..??
NTRadPING sends legal values. I have already given you the answer - fix your PERL code so that all legal required attributes are in your accounting packet. alan
Hi,
i doing stress testing of my freeradius with help of perl script. when i run perl script i runs and gives output, but in log file it genrate an error
a PERL script that you've written yourself? there are plenty of benchmarking/stresstest tools already out there... however, if you write your own tool, then please read the RADIUS RFCs are ensure compliance
modcall[accounting]: module "detail" returns ok for request 932 rlm_radutmp: No Accounting-Status-Type record.
your accounting packet has no Accounting-Status-Type attribute. thats just wrong alan
participants (4)
-
alan buxey -
Alan DeKok -
Fajar A. Nugraha -
QASIM RAO