<div dir="ltr">> Dan<span style="font-size:12.8px">, I have tested the way you told and it works. But is it possible to do the same everyday. Repeat everyday at a certain time?</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">You can calculate the ticks for 1 AM on the current day like so:</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">var d = new Date();</span></div><div><span style="font-size:12.8px">var ticks = Date.parse(d.getFullYear() + '-' + d.getMonth() + '-' + d.getDate() + ' 01:00:00')</span><br><br>And then plug that into the reboot declare.</div><div><br><span class="gmail-m_5657143144046616596gmail-pl-en" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(111,66,193)">declare</span><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">(</span><span class="gmail-m_5657143144046616596gmail-pl-s" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(3,47,98)"><span class="gmail-m_5657143144046616596gmail-pl-pds" style="box-sizing:border-box">"</span>Reboot<span class="gmail-m_5657143144046616596gmail-pl-pds" style="box-sizing:border-box">"</span></span><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">, </span><span class="gmail-m_5657143144046616596gmail-pl-c1" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(0,92,197)">null</span><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">, {value</span><span class="gmail-m_5657143144046616596gmail-pl-k" style="font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px;box-sizing:border-box;color:rgb(215,58,73)">:</span><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px"> </span><span style="font-size:12.8px">ticks</span><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">});</span><span style="font-size:12.8px"><br></span></div><div><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px"><br></span></div><div><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">You might have to do the tick calculation in an external script, reason being I believe the Date object in genie is sandboxed and only provides limited functionality.</span></div><div><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px"><br></span></div><div><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px">-dan</span></div><div><span style="background-color:rgb(246,248,250);color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:13.6px"><br></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 25, 2017 at 7:39 PM, unknown 2018 <span dir="ltr"><<a href="mailto:wikileaks1987@gmail.com" target="_blank">wikileaks1987@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">I would like to know, how to reboot all the devices at once and is it possible to schedule a reboot task in Genieacs.<br>
Now we can only reboot one device at a time. Please guide me in doing so with a detailed explanation.<br><br><br>
Thank you.</div>
<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>
<br></blockquote></div><br></div>