<div dir="ltr">Fajar<br><br>Appreciate the time you are taking to help out!<br><br>Its like this. We have two parts right<br><br>Part 1 -<br><br>Redundant module having sql1 and sql2<br>This is a critical module ,so if sql1 fails it tries sql2. So far so good!<br>
<br>Part 2 - <br><br>sql_update_xxxx , sql_update_yyyy<br><br>The above two update a different schema with some additional information. This action is not very critical and does NOT have a redundant set up. What we want is that the outcome of part2 should not affect the overall accounting response.<br>
<br>So if Part 2 fails , the result of Part 1 should override it (whatever the result of Part 1 maybe).<br><br><br><br><br><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 12:13 PM, Fajar A. Nugraha <span dir="ltr"><<a href="mailto:list@fajar.net">list@fajar.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, Dec 13, 2011 at 2:42 PM, Shweta Khadse <<a href="mailto:shwetgk@gmail.com">shwetgk@gmail.com</a>> wrote:<br>

> Redundant{<br>
><br>
>      Sql1{<br>
><br>
> ok=2<br>
><br>
>      }<br>
><br>
>     Sql2<br>
><br>
>      {<br>
><br>
> Ok= return<br>
><br>
>      }<br>
><br>
> }<br>
><br>
><br>
>  Sql_update_xxxx<br>
>                      {<br>
><br>
> FAIL=1<br>
><br>
>      }<br>
><br>
><br>
> Sql_update_yyyy<br>
>                      {<br>
><br>
> FAIL=1<br>
><br>
>      }<br>
><br>
> }<br>
<br>
</div>Looks like you misunderstood what I meant. DId you read<br>
<a href="http://wiki.freeradius.org/Fail-over" target="_blank">http://wiki.freeradius.org/Fail-over</a> ? Looks like you're confusing<br>
"group" and "redundant".<br>
<br>
Let me try this another way.<br>
<br>
What are you trying to do? Is it:<br>
(1) run ALL sql1, sql2, Sql_update_xxxx, and Sql_update_yyyy, and if<br>
any of them fail, the entire accounting block fail. OR<br>
(2) run EITHER ONE (and ONLY one) of sql1, sql2, Sql_update_xxxx, and<br>
Sql_update_yyyy, in that order. OR<br>
(3) TRY to run ALL of sql1, sql2, Sql_update_xxxx, and<br>
Sql_update_yyyy, but if any of them fail return OK for that particular<br>
module.<br>
(4) simply return Accounting-Response to the NAS no matter what<br>
<br>
If it's (1), then the block should be<br>
<br>
accounting {<br>
  sql1<br>
  sql2<br>
  sql_update_xxx<br>
  sql_update_yyy<br>
}<br>
<br>
if it's (2), then the block should be<br>
<br>
accounting {<br>
  redundant {<br>
    sql1<br>
    sql2<br>
    sql_update_xxx<br>
    sql_update_yyy<br>
    ok<br>
  }<br>
}<br>
<br>
if it's (3), then the block should be<br>
<br>
accounting {<br>
  redundant {<br>
    sql1<br>
    ok<br>
  }<br>
  redundant {<br>
    sql2<br>
    ok<br>
  }<br>
  redundant {<br>
    sql_update_xxx<br>
    ok<br>
  }<br>
  redundant {<br>
    sql_update_yyy<br>
    ok<br>
  }<br>
}<br>
<br>
If it's (4), then a simple<br>
<br>
accounting {<br>
  ok<br>
}<br>
<br>
is enough. Note that this block:<br>
<br>
accounting {<br>
  redundant {<br>
    ok<br>
    sql1<br>
    sql2<br>
    sql_update_xxx<br>
    sql_update_yyy<br>
  }<br>
}<br>
<br>
will also do the same thing as the one before (4), but anything under<br>
"ok" is useless as it's never used.<br>
<div class="HOEnZb"><div class="h5"><br>
--<br>
Fajar<br>
<br>
-<br>
List info/subscribe/unsubscribe? See <a href="http://www.freeradius.org/list/users.html" target="_blank">http://www.freeradius.org/list/users.html</a><br>
</div></div></blockquote></div><br></div>