(RADIATOR) how to save cisco-avpair= nas-rx-speed

Hugh Irvine hugh at open.com.au
Tue Nov 20 16:26:04 CST 2001


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, david.kramar at aliatel.cz 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 at 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 radiator-announce at open.com.au
> To unsubscribe, email 'majordomo at open.com.au' 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 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