> Dan, 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?

You can calculate the ticks for 1 AM on the current day like so:

var d = new Date();
var ticks = Date.parse(d.getFullYear() + '-' + d.getMonth() + '-' +
d.getDate() + ' 01:00:00')

And then plug that into the reboot declare.

declare("Reboot", null, {value: ticks});

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.

-dan


On Tue, Jul 25, 2017 at 7:39 PM, unknown 2018 <[email protected]>
wrote:

> I would like to know, how to reboot all the devices at once and is it
> possible to schedule a reboot task in Genieacs.
> Now we can only reboot one device at a time. Please guide me in doing so
> with a detailed explanation.
>
>
> Thank you.
>
> _______________________________________________
> Users mailing list
> [email protected]
> http://lists.genieacs.com/mailman/listinfo/users
>
>
_______________________________________________
Users mailing list
[email protected]
http://lists.genieacs.com/mailman/listinfo/users

Reply via email to