<div dir="ltr">I needed a way to iteratively run my extension scripts without waiting for a preset to kickoff a provision to kickoff an extension. This is what I came up with. Place this script in your genieacs/config/ext folder (same location as your extension scripts) and call it ext-runner.js<div><br></div><div><div style="color:rgb(212,212,212);background-color:rgb(30,30,30);font-family:"droid sans mono","courier new",monospace,"droid sans fallback";font-size:14px;line-height:19px"><div style="font-family:"droid sans mono","courier new",monospace,"droid sans fallback";line-height:19px"><div><span style="color:rgb(86,156,214)">const</span> <span style="color:rgb(156,220,254)">cpeConfig</span> = <span style="color:rgb(220,220,170)">require</span>(<span style="color:rgb(206,145,120)">'./cpe-config'</span>)</div><br><div><span style="color:rgb(86,156,214)">const</span> <span style="color:rgb(156,220,254)">serial</span> = <span style="color:rgb(206,145,120)">'SR515AA046-5000137'</span>;</div><div><span style="color:rgb(86,156,214)">const</span> <span style="color:rgb(156,220,254)">oui</span> = <span style="color:rgb(206,145,120)">'3c9066'</span>;</div><div><span style="color:rgb(86,156,214)">const</span> <span style="color:rgb(156,220,254)">productClass</span> = <span style="color:rgb(206,145,120)">'963168_OT142C_B'</span>;</div><br><div><span style="color:rgb(78,201,176)">console</span>.<span style="color:rgb(220,220,170)">log</span>(<span style="color:rgb(206,145,120)">'Running script'</span>);</div><br><div><span style="color:rgb(156,220,254)">cpeConfig</span>.<span style="color:rgb(220,220,170)">getPppoe</span>([<span style="color:rgb(156,220,254)">serial</span>, <span style="color:rgb(156,220,254)">oui</span>, <span style="color:rgb(156,220,254)">productClass</span>], <span style="color:rgb(86,156,214)">function</span> (<span style="color:rgb(156,220,254)">e</span>) {</div><div>    <span style="color:rgb(78,201,176)">console</span>.<span style="color:rgb(220,220,170)">error</span>(<span style="color:rgb(156,220,254)">e</span>);</div><div>});</div></div></div></div><div><br></div><div>Replace "cpe-config" with the file name of your extension script, and the ".getPppoe" with the exported name.</div><div><br></div><div>To run, cd to your genieacs dir and run "node config/ext/ext-runner.js"</div><div><br></div><div>I hope this helps someone!</div><div><br></div></div>