Community discussions

MikroTik App
 
User avatar
AlexPebody
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri Nov 12, 2021 3:50 pm

Mikrotik sleep and wake script?

Thu Jun 16, 2022 7:10 am

Hi guys.

Please anybody, could help? Need script for schedule shutdown and wake up mikrotik, can this idea will live in to Mikrotik?

Like 02:00:00 AM going to sleep/shutdown and 10:00:00 AM wake up itself Mikrotik board?

As shutdown I know and I know about Linux into Mikrotik just sleep and do not poweroff totally, but how wake up it itself ROS not using WOL from PC or other devices?

Thx for all 8-)
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11591
Joined: Thu Mar 03, 2016 10:23 pm

Re: Mikrotik sleep and wake script?  [SOLVED]

Thu Jun 16, 2022 8:13 am

Mikrotik hardware doesn't even support proper shutdown (i.e. self power-off), let alone automatic start up. Your best bet would be to schedule disable of certain interfaces, but that doesn't help much with power consumption, it only blocks connectivity through those interfaces..
 
User avatar
AlexPebody
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 52
Joined: Fri Nov 12, 2021 3:50 pm

Re: Mikrotik sleep and wake script?

Thu Jun 16, 2022 8:24 am

Thx. Sad.
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Mikrotik sleep and wake script?

Thu Jun 16, 2022 11:40 am

use a old timer on power plug... remember that devices?
;)
 
pe1chl
Forum Guru
Forum Guru
Posts: 10218
Joined: Mon Jun 08, 2015 12:09 pm

Re: Mikrotik sleep and wake script?

Thu Jun 16, 2022 11:47 am

I would still advise to use a proper shutdown command and not just remove the power, when you are going to do that daily.
So make a scheduled job at 02:00 AM daily that issues the command "/system shutdown" and then use an external timer power socket to poweroff the device between 02:30 and 10:00.
(allow some time because the clock on the timer socket will probably not be exact, you want it to cutoff AFTER 02:00 and never before).

Who is online

Users browsing this forum: MarkusT and 46 guests