AXL RADIUS Server API V3

com.theorem.radserver3.radutil
Class radacct

Object
  extended byradacct

public class radacct
extends Object

Test accounting class for a radius server.

Sends a pair of accounting requests to a RADIUS server using command line options. The first is a Start packet the second is a Stop packet.

 Usage: radacct User-Name  inputCount ouputCount sessionId server[:port default is 1813]  secret [nasname]
 
The arguments: Examples:
 radacct michael 1000 2000 MICK1 127.0.0.1 seversecret
 radacct michael 10000 10200 Zither 192.168.1.1:1645 testtesttest
 radacct michael 0000 10200 Acct-Zither 192.168.1.1 seversecret NAS1
 
Be sure that the RADIUS server allows the workstation as a client and that the secret is the same for the client and server.


Constructor Summary
radacct()
           
 
Method Summary
static void main(String[] args)
          Main task.
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

radacct

public radacct()
Method Detail

main

public static void main(String[] args)
Main task. This authenticates and accounts against a radius server defined the radtest.properties file. The Authentication loop uses the AttributeArray class to create attributes. The Accounting loop use the Radius object's methods to create attributes.

Parameters:
args - Command line arguments. login, input count, output count, Session Id, server[:port default is 1812], secretkey [nasname]

AXL RADIUS Server API V3

Submit a bug report or feature request

Copyright 1998-2008 AXL Software. PO Box 97, Viola, Delaware 19979, U.S.A. All Rights Reserved.