Question on Radius logs

Brett Littrell Blittrell at musd.org
Tue Feb 1 18:50:55 CET 2011


Hi James,
 
    That looks perfect for the tech logs, thanks.  The debugging side was a little different, I was thinking about inputting text strings in the middle of unlang scripts.  Usually when I write say a C program I will pop in a lot of printf's with variables so I know what a variable is in a program, well use to anyway debuggers make that to easy now to waste time on it.  For freeradius I was not sure if there was similar functionality.  I am guessing there is not, I was kind of thinking it may be a stretch to add something like that in a config file.
 
Thanks for the linelog module, that will really help a lot!!.
 
Brett Littrell
Network Manager
MUSD
CISSP, CCSP, CCVP, MCNE


>>> On Tuesday, February 01, 2011 at 9:02 AM, in message <57DE4B8C2C2D9555B06A9046 at valium>, James J J Hooper <jjj.hooper at bristol.ac.uk> wrote:



--On Tuesday, February 01, 2011 08:41:54 -0800 Brett Littrell 
<Blittrell at musd.org> wrote:

> Hi All,
>
>     Real quick and I am sure easy question here.   I read through the
> unlang man page, really helped in getting a clue.  One thing I was
> wondering though, is there a way to output text to the log based on a
> condition?  What I mean is something like if x!=y then printf(" x did not
> equal y").  This would be for debugging and log review.  Currently we use
> Cisco ACS, which with all it's limitations the one thing that is great
> about it is it's pass/fail logs.  Our techs use them all the time to
> diagnose problems.  If I could inject text strings into the logs when
> certain issues occur it would make it a lot easier to figure out scripts
> as well as make common issues easier for techs to troubleshoot.
>     From what I can tell in the unlang man page it did not mention this,
> perhaps I missed it though.
>

Hi Brett,
  It sounds like the linelog module may do what you need, in conjunction 
with unlang for the conditionals:
<https://github.com/alandekok/freeradius-server/blob/v2.1.x/raddb/modules/linelog>

Regards,
  James



-- 
James J J Hooper
Network Specialist
Information Services
University of Bristol
http://www.wireless.bristol.ac.uk
-- 


-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeradius.org/pipermail/freeradius-users/attachments/20110201/680725b1/attachment.html>


More information about the Freeradius-Users mailing list