Hi Folks,<div><br></div><div>Trying to look at the problem in another way. </div><div><br></div><div>I am inclined to think that I may have to write a module to "parse" the octet string and populate the attributes into the AVP list. Assuming that this is feasible, I would like to parse before the logging happens (via the "detail" module).</div>
<div><br></div><div>To this end, wondering how to order the execution of modules - is this dictated via the order of entries in the </div><div>accounting {} part of the radiusd.conf file?</div><div><br></div><div>Any insight into the questions /issues below will also be very helpful.</div>
<div><br></div><div>Thanks</div><div>-a<br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 7:18 AM, al pat <span dir="ltr"><<a href="mailto:alps.oss@gmail.com">alps.oss@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi,<div><br></div><div>I am trying to parse accounting logs of cablelabs format. Some of the attributes are octet strings which in itself contain</div><div>detailed information that is printed as a octet string by freeradius.</div>

<div><br></div><div>e.g.:</div><div><br></div><div><p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">        CableLabs-Event-Message = 0x484153482830783833326632306329</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">        CableLabs-Related-Call-Billing-Crl-ID += 0x494b8dc32020202020202032302b3</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">0303030303000000040</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">        CableLabs-Related-Call-Billing-Crl-ID += 0x494b8dc32020202020202032302b3</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">030303030300000003f</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco">        Acct-Session-Id = "IK\215\303       20+000000\000\000\000?"</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:14.0px Monaco;min-height:19.0px">   ..... other avps' ... </p></div><div><br></div><div>With help of members on this list, I have been able to write a perl module to parse these octet strings, but am not able </div>

<div>to log them in proper place.</div><div><br></div><div>I need to log all the standard attributes (typically logged in .../Client-IP-Addr/detail-<date> file) as well as these extra </div><div>parsed attributes in one place. These are all in the accounting messages - need to achieve a consolidated log for</div>

<div>accounting messages - does not matter in which file it is.</div><div><br></div><div>How to achieve that?</div><div><br></div><div>Do I need to make a code change - if so where?</div><div>Do I need to make a change to the config files - if so which?</div>

<div>Do I need to use a specific log mechanism in the perl module - if so what?</div><div><br></div><div>Any other input/guidance to help achieve that?</div><div><br></div><div>Thank You</div><div>-a</div><font color="#888888"><div>
<br></div><div>
<br></div>
</font></blockquote></div><br></div>