[prev in list] [next in list] [prev in thread] [next in thread]
List: freeradius-users
Subject: Re: Packet Type in modules
From: Arran Cudbard-Bell <a.cudbardb () freeradius ! org>
Date: 2012-11-29 13:38:38
Message-ID: E41CE02D-3D75-4DE2-BCEB-3A00485DD5D1 () freeradius ! org
[Download RAW message or body]
On 29 Nov 2012, at 13:00, Alexandre J. Correa - Onda Internet <alexandre@onda.net.br> \
wrote:
> Hello,
>
> I have some scripts that do some sync tasks when freeradius start accouting:
>
> Like this:
>
> created module, named 'sysnotify' with this:
>
> exec sysnotify {
> wait = no
> program = "/ondasys/system/sysnotify %{User-Name:-Nenhum} \
> %{Framed-IP-Address:-Nenhum} %{Acct-Status-Type:-ERR} %{Acct-Session-Id:-ERR} \
> %{NAS-IP-Address}" packet_type = Accounting-Request
> }
>
>
> and, instanciated at preacct block:
>
> preacct {
> acct_unique
> sysnotify
> }
>
> itīs working fine, but i need to optimize this, because this scripts are running in \
> Accouting-Start, Accouting-Stop and Interim-Update ..
> How i can catch ONLY Start and Stop events ?
preacct {
if ((Acct-Status-Type == 'Start') || (Acct-Status-Type == 'Stop')) {
sysnotify
}
}
-Arran
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic