(RADIATOR) Re: Account Update Message (DLG-24)
Hugh Irvine
hugh at open.com.au
Tue Aug 9 03:18:27 CDT 2005
Hello Ajay -
As mentioned in my previous mail you will need to send an Accounting-
Request with an Acct-Status-Type=Alive (not an Acct-Status-Type=Start
as you show in your mail). You would do something like this:
perl radpwtst -noauth -noacct -trace 4 -code Accounting- Request Acct-
Status-Type=Alive Acct-Session-Id=XXXXX NAS-Identifier=YYYYY Acct-
Input-Octets=NNNNNN Acct-Output-Octets=MMMMMM .....
regards
Hugh
On 9 Aug 2005, at 16:56, Ajay Gopinath wrote:
> Hi Hugh,
>
> We need to monitor the usage on the GPRS session in order to work
> out if the subscriber who is running the GPRS session has enough
> credit to continue with the session.
>
> Hence we periodically need to send a account update message to
> update the volume down loaded.
>
> We basically need to generate the above message via radpwtst
>
> Acct-Session-Id=XXXXXXX
> Nas-Identifier=XXXXXXXX
> Acc-Input-Octet-XXXXXX
> Acc-Output-Octets=XXXXXXX
>
> Cheers,
> Ajay
>
>
> > -----Original Message-----
> > From: Hugh Irvine [mailto:hugh at open.com.au]
> > Sent: Tuesday, 9 August 2005 2:04 PM
> > To: Ajay Gopinath
> > Cc: radiator at open.com.au; jira
> > Subject: Re: Account Update Message (DLG-24)
> >
> >
> > Hello Ajay -
> >
> > Here is the "help" for radpwtst:
> >
> > hugh$ perl radpwtst -h
> > usage: radpwtst [-h] [-time] [-iterations n]
> > [-trace [level]] [-s server] [-secret secret]
> > [-noauth] [-noacct][-nostart] [-nostop] [-status]
> > [-chap] [-mschap] [-mschapv2] [-eapmd5] [-eapotp]
> > [- eapgtc] [-eaphex]
> > [-accton] [-acctoff] [-framed_ip_address address]
> > [-auth_port port] [-acct_port port] [-identifier n]
> > [-user username] [-password password]
> > [-nas_ip_address address] [-nas_identifier string]
> > [-nas_port port] [-nas_port_type type]
> > [-service_type service]
> > [-calling_station_id string] [-called_station_id string]
> > [-session_id string] [-interactive]
> > [-delay_time n] [-session_time n] [-input_octets n]
> > [-output_octets n] [-timeout n] [-dictionary file,file]
> > [-gui] [-class string] [-useoldascendpasswords]
> > [-code requestcode] [-raw data] [-rawfile filename]
> > [-rawfileseq filename]
> > [-outport port] [-bind_address dotted-ip-address]
> > [attribute=value]...
> >
> >
> > What exactly do you mean by "Account Update"? If you mean
> > accounting alives, you can do something like this:
> >
> > perl radpwtst -noauth -noacct -trace 4 -code
> > Accounting- Request Acct-Status-Type=Alive .....
> >
> > hugh$ perl radpwtst -noauth -noacct -trace 4 -code
> > Accounting-Request Acct-Status-Type=Alive
> > Reading dictionary file './dictionary'
> > sending Accounting-Request...
> > Packet dump:
> > *** Sending to 127.0.0.1 port 1645 ....
> > Code: Accounting-Request
> > Identifier: 92
> > Authentic:
> <0><0><0><0><0><0><0><0><0><0><0><0><0><0><0><0>
> > Attributes:
> > Acct-Status-Type = Alive
> >
> >
> > regards
> >
> > Hugh
> >
> >
> >
> >
> > On 9 Aug 2005, at 13:49, Ajay Gopinath wrote:
> >
> > > Hi Hugh,
> > >
> > > We are using the radpwtst to send test messages to RADIATOR.
> > >
> > > How do we generate test "Account Update" messages?
> > >
> > >
> > > Cheers,
> > > Ajay
> > >
> > >
> > >
> > >
> > >
> >
> >
> > NB:
> >
> > Have you read the reference manual ("doc/ref.html")?
> > Have you searched the mailing list archive
> > (www.open.com.au/archives/ radiator)?
> > Have you had a quick look on Google (www.google.com)?
> > Have you included a copy of your configuration file (no
> > secrets), together with a trace 4 debug showing what is happening?
> >
> > --
> > Radiator: the most portable, flexible and configurable RADIUS
> > server anywhere. Available on *NIX, *BSD, Windows, MacOS X.
> > -
> > Nets: internetwork inventory and management - graphical,
> > extensible, flexible with hardware, software, platform and
> > database independence.
> > -
> > CATool: Private Certificate Authority for Unix and Unix-like
> systems.
> >
> >
> >
>
NB:
Have you read the reference manual ("doc/ref.html")?
Have you searched the mailing list archive (www.open.com.au/archives/
radiator)?
Have you had a quick look on Google (www.google.com)?
Have you included a copy of your configuration file (no secrets),
together with a trace 4 debug showing what is happening?
--
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
-
CATool: Private Certificate Authority for Unix and Unix-like systems.
--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.
More information about the radiator
mailing list