Community discussions

MikroTik App
 
Serenath
just joined
Topic Author
Posts: 5
Joined: Mon Apr 06, 2015 2:48 pm

DSL Router reboot script

Tue Apr 06, 2021 4:04 pm

Hi al

Need some assistance / help with running the following script via Mikrotik and setting it to run daily at 6:00am
It is basically to reboot my DSL router.

I use to run it via a linux box, but that machine no longer on the network.
Any help will greatly be appreciated

Thanks in advance

it uses the cURL command.

IP=192.168.1.1
USER=admin
PASSWORD=password

curl --user $USER:$PASSWORD $IP/reboot.cgi >/dev/null 2>&1
 
myxa781
just joined
Posts: 3
Joined: Fri Jan 29, 2021 9:37 am

Re: DSL Router reboot script  [SOLVED]

Tue Apr 06, 2021 4:59 pm

for first try something like this :
 /tool fetch url="http://192.168.1.1/reboot.cgi" user=admin password=password
you can ran it via terminal (e.g via winbox), if it work go to system->sheduler and create task with this script

Who is online

Users browsing this forum: diamuxin, loloski and 30 guests