Community discussions

MikroTik App
 
thembo
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 51
Joined: Fri Sep 04, 2009 10:04 am

reboot

Mon Oct 12, 2009 4:41 pm

am new to scripting
can some help me with a script so that my router board reboots every 03:00am every day.
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: reboot

Mon Oct 12, 2009 4:45 pm

something like
/system scheduler add interval=1d start-time=3:00:00 name="reboot" policy=reboot on-event="/system reboot"
 
User avatar
hilton
Long time Member
Long time Member
Posts: 634
Joined: Thu Sep 07, 2006 5:12 pm
Location: Jozi (aka Johannesburg), South Africa

Re: reboot

Sat Oct 17, 2009 9:20 am

Chupaka, does it also bug you when noobs don't bother to post a simple "thank you"?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: reboot

Sat Oct 17, 2009 4:41 pm

maybe, he just have lost forum's address? :D

no, I simply play it cool ))

p.s. it's my 3000th post!!! yahooo!!!!!
 
brakmaren
just joined
Posts: 9
Joined: Sun Oct 11, 2009 10:17 pm

Re: reboot

Sat Oct 17, 2009 6:45 pm

Hi.
Just out of curiosity, why would you want to do that, reboot every day that is.
I'm a noob, so just out of interest...
Thanks.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: reboot

Sat Oct 17, 2009 9:05 pm

Some people have an ISP that doesn't cache DHCP leases like to get a new IP every day and a reboot is a simple way to do that. Others have configuration issues that only show symptoms after the router has run for a while and don't want to fix the underlying issue and are happy to bandaid by just rebooting frequently.
 
brakmaren
just joined
Posts: 9
Joined: Sun Oct 11, 2009 10:17 pm

Re: reboot

Sun Oct 18, 2009 9:23 pm

Ahh, i get it.
The first one that is (dhcp), the second one seem to just be 'wrong'.
Why would you want a faulty system ???
But everybody is different i guess.
Thank's for the explanation...

Who is online

Users browsing this forum: No registered users and 13 guests