<div dir="ltr">Turn on debug and capture the output of doing a manual reboot (from the gui) and doing a reboot from a provision.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 26, 2017 at 12:44 PM, guifipedro <span dir="ltr"><<a href="mailto:guifipedro@gmail.com" target="_blank">guifipedro@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 Dan,<br>
<br>
Thanks for your reply<br>
<br>
I tried:<br>
<span class=""><br>
declare("Reboot", null, {value: Date.now()});<br>
<br>
</span>but does not work. Does the fast reconnection (down and up PPPoE<br>
interface). I know that's it because Internet's led goes red while reconnecting<br>
pppoe interface<br>
<br>
If you would like to know more details tell me<br>
<br>
Pedro<br>
<div class="HOEnZb"><div class="h5"><br>
On Wed, Jul 26, 2017 at 10:34 PM, Dan Morphis <<a href="mailto:dan@milkcarton.com">dan@milkcarton.com</a>> wrote:<br>
> Try this:  declare("Reboot", null, {value: Date.now()});<br>
><br>
> On Wed, Jul 26, 2017 at 12:29 PM, guifipedro <<a href="mailto:guifipedro@gmail.com">guifipedro@gmail.com</a>> wrote:<br>
>><br>
>> Hi community,<br>
>><br>
>> I'm using a preset that triggers a provision.<br>
>><br>
>> Sadly, I have a specific CPE model that after applying specific<br>
>> configuration requires reboot.<br>
>><br>
>> When I run this based on doc [1]:<br>
>><br>
>> declare("Reboot", { value: now }, { value: now });<br>
>><br>
>> seems that the CPE just disconnects and connects again the PPPoE (?)<br>
>><br>
>> But If I do a manual reboot using the HTML button [2] on GenieACS GUI<br>
>> it reboots as expected.<br>
>><br>
>> So I need this real reboot functionality but automated in the provision<br>
>> script.<br>
>><br>
>> Hope someone knows what's going on<br>
>><br>
>> Pedro<br>
>><br>
>> [1] <a href="https://github.com/zaidka/genieacs/wiki/Provisions#reboot" rel="noreferrer" target="_blank">https://github.com/zaidka/<wbr>genieacs/wiki/Provisions#<wbr>reboot</a><br>
>> [2] <a id="reboot" href="#" onclick="reboot();return false;">Reboot</a><br>
______________________________<wbr>_________________<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/<wbr>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br></div>