Hello Dave -

The only thing that you can write in the configuration file is 

        %{cisco-avpair}

as this is the name of the attribute. Unfortunately in the packet you show 
below, there are several %{cisco-avpair} attributes present and there is no 
way to distinguish between them.

The only thing I can think of is to write a hook to find the cisco-avpair 
attributes that you are interested in recording and deleting the others.

There are some example hooks in the file "goodies/hooks.txt" in the Radiator 
distribution.

hth

Hugh


On Wednesday 21 November 2001 06:22, [EMAIL PROTECTED] wrote:
> Hi, I didn't find correct answer in list..
> please,  I would like to save to AcctLogFileName "cisco-avpair =
> "nas-rx-speed=28800"" - the number "28800" but I don know what I have to
> write to conf. file,
>
> Thanks for any answer
> David
> .
> .
> <Realm DEFAULT>
>         <AuthBy RADIUS>
>             Secret xxxxxxx
>             <Host 172.26.1.11>
>                 AuthPort 1812
>                 AcctPort 1813
>             </Host>
>             <Host 172.26.2.12>
>                 AuthPort 1812
>                 AcctPort 1813
>             </Host>
>         </AuthBy>
>    AcctLogFileName %L/default%Y-%v-%d
>    AcctLogFileFormat    %{User-Name} %o %{Timestamp} %{Acct-Status-Type}
> %{Acct-Delay-Time} \
>                         %{Acct-Input-Octets} %{Acct-Output-Octets}
> %{Acct-Session-Id} \
>                         %{Acct-Session-Time} %{Acct-Terminate-Cause}
> %{NAS-IP-Address} \
>                         %{NAS-Port} %{Framed-IP-Address}  "what I have to
> write here for save "cisco-avpair nas-rx-speed???"
> </Realm>
>
> #--------trace 4 ------------DEBUG-----------------
> Code:       Accounting-Request
> Identifier: 2
> Authentic:  <0><0><0><0><0><0><0><0><0><0><0><0><0><0><0><0>
> Attributes:
>         NAS-IP-Address = 172.26.2.155
>         NAS-Port = 5
>         Cisco-NAS-Port = "Async5*Serial0:8"
>         NAS-Port-Type = Async
>         User-Name = "user1@userdomain"
>         Called-Station-Id = "713"
>         Acct-Status-Type = Stop
>         Acct-Authentic = RADIUS
>         Service-Type = Framed-User
>         Acct-Session-Id = "00000044"
>         Framed-Protocol = PPP
>         Framed-IP-Address = 172.26.3.2
>         Acct-Terminate-Cause = User-Request
>         Acct-Input-Octets = 2219
>         Acct-Output-Octets = 102
>         Acct-Input-Packets = 29
>         Acct-Output-Packets = 6
>         Acct-Session-Time = 15
>         cisco-avpair = "disc-cause-ext=1045"
>         cisco-avpair = "pre-bytes-in=105"
>         cisco-avpair = "pre-bytes-out=72"
>         cisco-avpair = "pre-paks-in=4"
>         cisco-avpair = "pre-paks-out=4"
>         cisco-avpair = "pre-session-time=21"
>         cisco-avpair = "connect-progress=60"
>         cisco-avpair = "nas-rx-speed=28800"
>         cisco-avpair = "nas-tx-speed=33600"
>         Acct-Delay-Time = 0
>         Timestamp = 1006282052
> ===
> Archive at http://www.open.com.au/archives/radiator/
> Announcements on [EMAIL PROTECTED]
> To unsubscribe, email '[EMAIL PROTECTED]' with
> 'unsubscribe radiator' in the body of the message.

-- 
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. Available on *NIX, *BSD, Windows 95/98/2000, NT, MacOS X.
-
Nets: internetwork inventory and management - graphical, extensible,
flexible with hardware, software, platform and database independence.
===
Archive at http://www.open.com.au/archives/radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to