<div dir="ltr">You will have issues with the way you are doing your preconditions. For your first preset, you want to add a precondition that it not have the tags "READY" or "STAGE 1 OK". By deleting the tags, you also prevent the CPE from being reconfigured if its ever factory defaulted by the customer/ACS.<div><br></div><div>Here is how I use presets to configure CPEs.</div><div><br></div><div>All CPEs get a base config (enable and disable services on the CPE, etc). Then I use notification mechanism I added (<a href="https://github.com/akcoder/genieacs">https://github.com/akcoder/genieacs</a>) in my fork to figure out what needs to happen with the CPE, and add tags to the CPE based on that. For example I add the tag "Routed" or "Bridged". Then there is a preset which has tag = "Routed" as the precondition which adds objects and sets some specific values. Finally, I create a device specific preset which sets the WiFi SSID and passphrase and PPPoE credentials.</div><div><br></div><div>In this way, if the customer ever factory defaults the CPE, the tags will still be applied to the CPE, discrepancies will be detected by Genie after the refresh happens (a complete refresh always happens on a 0 BOOTSTRAP event). And in about 5 minutes the CPE will come back online. Doing things this way has eliminated a lot of support calls from customers that are "experts" and think factory resetting the CPE is the solution to all of lifes problems.</div><div><br></div><div>-dan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Dec 22, 2015 at 2:19 AM, Nicolas Grondin <span dir="ltr"><<a href="mailto:grondin.nicolas@gmail.com" target="_blank">grondin.nicolas@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">Hi,<div>I plan to use presets to configure CPE.</div><div>But i ignore how presets work.</div><div><br></div><div>I create 2 generic presets for all my CPE (OUI and Product Classe preconditions) and 1 preset for individual CPE (Serial Number).</div><div>To force the presets to applys in the right order i use tags. </div><div><br></div><div>1st-preset :</div><div><ul><li>Precondition :</li><ul><li>OUI = 00E0FC</li><li>Product Class = HG658 V2</li></ul><li>Configurations :</li><ul><li>Add objects</li><li>Set Values</li><li>Add Tag  "STAGE1 OK"</li></ul></ul>2nd-preset : </div><div><ul><li>Precondition</li><ul><li>OUI = 00E0FC</li><li>Prodcut Class ) HG658 V2</li><li>Tag = "STAGE1 OK"</li></ul><li>Configurations:</li><ul><li>Del Tag "STAGE1 OK"</li><li>Add objects</li><li>Add Tag "READY"</li></ul></ul><div>Individual-preset-<DevicID> :</div></div><div><ul><li>Precondition :</li><ul><li>Serial Number = <SN of CPE></li><li>Tag = "READY"</li></ul><li>Configurations :</li><ul><li>Del Tag "READY"</li><li>Set Values</li><li>Add Tag "Provisioned"</li></ul></ul><div><br></div></div><div>When a CPE connects the first time, 1st-preset apply.</div><div>When CPE next inform, nothing else happens until i modifiy the 2nd-preset (edit, no change and save). In the CWMP log file, there's the line " Presets discrepancy found". and the CPE applys the 2nd-preset.</div><div><br></div><div>I succeed to make the CPE applies the Individual preset byt editing and saving the preset with no change.</div><div><br></div><div>How could we have the same behavior without editing and saving the preset to force presets to be applyied each time the CPE connects to inform the ACS ?</div><div><br></div><div>Or when will the scripting functionality be available ?</div><div><br></div><div>Thanks a lot.</div><div><br></div><div>Regards,</div><div>Nicolas</div><span><font color="#888888"><div><br></div><div><br></div></font></span></div>
</div><br></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.genieacs.com">Users@lists.genieacs.com</a><br>
<a href="http://lists.genieacs.com/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.genieacs.com/mailman/listinfo/users</a><br>
<br></blockquote></div><br></div>