(RADIATOR) AcctLogFileFormat
William Hernandez
whr at essnet.com
Fri Nov 2 09:05:43 CST 2001
Thanks Hugh,
The following in radius.cfg:
AcctLogFileFormat %o %r User-Name = "%U" %r NAS-IP-Address =
%{NAS-I
P-Address} %r NAS-Identifier = "%{NAS-Identifier}" %r
Acct-Status-Type = %{Acc
t-Status-Type} %r Acct-Session-Id = "%{Acct-Session-Id}" %r
Acct-Del
ay-Time = %{Acct-Delay-Time} %r Acct-Authentic =
%{Acct-Authentic} %r Service-
Type = %{Service-Type} %r NAS-Port-Type = %{NAS-Port-Type}
%r NAS-Port
= %{NAS-Port} %r USR-Modem-Training-Time =
%{USR-Modem-Training-Time} %r
USR-Interface-Index = %{USR-Interface-Index} %r Chassis-Call-Slot
= %{Chassis-Ca
ll-Slot} %r Chassis-Call-Span = %{Chassis-Call-Span} %r
Chassis-Call-Cha
nnel = %{Chassis-Call-Channel} %r Unauthenticated-Time =
%{Unauthenticated
-Time} %r Calling-Station-Id = "%{Calling-Station-Id}" %r
Called-Station-I
d = "%{Called-Station-Id}" %r VPN-ID = %{VPN-ID} %r
Modulation-Type = %{Modu
lation-Type} %r Simplified-MNP-Levels = %{Simplified-MNP-Levels}
%r Simplifi
ed-V42bis-Usage = %{Simplified-V42bis-Usage} %r Connect-Speed =
%{Connect-Speed} %r Framed-Protocol = %{Framed-Protocol} %r
Framed-IP-Address = %{Framed-IP-
Address} %r VTS-Session-Key = "%{VTS-Session-Key}" %r
Call-Arrived-tim
e = %{Call-Arrived-time} %r Ascend-NAS-Port-Format =
%{Ascend-NAS-Port-Forma
t} %r Ascend-Multilink-ID = "%{Ascend-Multilink-ID}" %r
Ascend-Num-In-Mu
ltilink = %{Ascend-Num-In-Multilink} %r Acct-Link-Count =
"%{Acct-Link-Count}" %
r Acct-Multi-Session-Id = %{Acct-Multi-Session-Id} %r
Ascend-Modem-Por
tNo = %{Ascend-Modem-Portno} %r Ascend-Modem-SlotNo =
%{Ascend-Modem-Slotno} %r Timestamp = %{Timestamp}
got me the following line in the detail file:
Fri Nov 2 10:51:14 2001
User-Name = "cummins-pr.com"
NAS-IP-Address = 203.63.154.1
NAS-Identifier =
Acct-Status-Type = Stop
Acct-Session-Id = 00001234
Acct-Delay-Time = 0
Acct-Authentic =
Service-Type = Framed-User
NAS-Port-Type = Async
NAS-Port = 1234
USR-Modem-Training-Time =
USR-Interface-Index =
Chassis-Call-Slot =
Chassis-Call-Span =
Chassis-Call-Channel =
Unauthenticated-Time =
Calling-Station-Id =
Called-Station-Id =
VPN-ID =
Modulation-Type =
Simplified-MNP-Levels =
Simplified-V42bis-Usage =
Connect-Speed =
Framed-Protocol =
Framed-IP-Address =
VTS-Session-Key =
Call-Arrived-time =
Ascend-NAS-Port-Format =
Ascend-Multilink-ID =
Ascend-Num-In-Multilink =
Acct-Link-Count =
Acct-Multi-Session-Id =
Ascend-Modem-PortNo =
Ascend-Modem-SlotNo =
Timestamp = 1004712674
Is there a way to suppress the printing of values that don't have
values?
Thanks in advance,
William
-----Original Message-----
From: Hugh Irvine [mailto:hugh at open.com.au]
Sent: Friday, November 02, 2001 12:10 AM
To: William Hernandez
Cc: radiator at open.com.au
Subject: Re: (RADIATOR) AcctLogFileFormat
Hello William -
>Hello everyone,
>
>I have the following in radius.cfg:
> AcctLogFileFormat \
> %U \
> %{NAS-IP-Address} \
> %{NAS-Identifier} \
> %{Acct-Status-Type} \
> %{Acct-Session-Id} \
> %{Acct-Delay-Time} \
> %{Acct-Authentic} \
> %{Service-Type} \
> %{NAS-Port-Type} \
> %{NAS-Port} \
> %{USR-Modem-Training-Time} \
> %{USR-Interface-Index} \
> %{Chassis-Call-Slot} \
> %{Chassis-Call-Span} \
> %{Chassis-Call-Channel} \
> %{Unauthenticated-Time} \
> %{Calling-Station-Id} \
> %{Called-Station-Id} \
> %{VPN-ID} \
> %{Modulation-Type} \
> %{Simplified-MNP-Levels} \
> %{Simplified-V42bis-Usage} \
> %{Connect-Speed} \
> %{Framed-Protocol} \
> %{Framed-IP-Address} \
> %{VTS-Session-Key} \
> %{Call-Arrived-time} \
> %{Timestamp}
>
>I tested with:
>radpwtst -trace -s www.prw.net -user
>cummins-pr at prdigital.com -password somepassword -auth_port
>1812 -acct_port 1813 -secret somesecret -dictionary
>/etc/raddb/dictionary.prw
>
>And I get the following in the accounting detail file:
>Thu Nov 1 17:39:17 2001
> User-Name = "cummins-pr.com at prdigital.com"
> Service-Type = Framed-User
> NAS-IP-Address = 203.63.154.1
> NAS-Port = 1234
> NAS-Port-Type = Async
> Acct-Session-Id = "00001234"
> Acct-Status-Type = Start
> Timestamp = 1004650757
>
>cummins-pr.com 203.63.154.1 Stop 00001234 0 Framed-User Async
>1234
> 1004650762
>
>
>The desired change in the accounting detail file was to simply
>output the User-Name without the domain, i.e., User-Name =
>"cummins-pr.com".
>
>Where did I go wrong?
>
The first thing you have to do is set up the correct format:
AcctLogFileFormat %{Timestamp} %n \
%t User-Name = %U %n \
%t NAS-IP-ADDRESS = %{NAS-IP-Address} %n \
%t NAS-Identifier = %{NAS-Identifier} %n \
........
And then you should send it to a different file:
AcctLogFileName %L/.....
hth
Hugh
--
NB: I am travelling this week, so there may be delays in our
correspondence.
Radiator: the most portable, flexible and configurable RADIUS
server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT,
Emerald,
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc,
etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS
X.
===
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