Script to remote reboot the devices...

Hi dude..

if i want put a script in the scheduler and it will help to remote reboot some linksys devices.

how can i make it.

thanks..

AFAIK, there isn’t an option in MikroTik to send an HTTP request (inherently, you can’t do it directly from the router).

You can however send an email, so… do that, and have a script on another box check that mailbox regularly, and upon encountering the appropriate email, sends a properly formatted HTTP request to the Linksys device.

Whenever you find yourself doing scheduled reboots of network equipment the correct course of action is to either fix or replace the network equipment that requires scheduled reboots until it doesn’t require scheduled reboots to function. Everything else is a band aid that does nothing to correct the root cause, or any associated problems.

Ops, tha’s bad…
then possible we can do this in the centos?

as i try, it seem not working..

It depends on how reboot is triggered. You can try to send html code to device with /tool fetch upload=yes

Hi…
what i done is, since i have the radius manager server running same LAN with the mikrotik server.
Mikrotik server work as the NASs, i let the radius manager server taking care the AP under the LAN.

And, i bypass all the AP and the radius manager server LAN.
then i install “expect” package into the radius manager server.

then below is the script i given to it with crobtab enable.

#!/usr/bin/expect -f
spawn telnet 192.168.100.3
expect -exact "Login name:"
send -- "admin\n"
expect -exact "Password:"
send -- "ApW1Fi\n"
expect -exact "Command:"
send -- "reboot\n"

with the crontab enable, it will help me to reboot everyday on that particular time.

BTW, Dear Mikrotik, can we have the option for the remote reboot option as well?

thanks.

ang.