Script to reboot routers from inside LAN.

Hi,
I’ve this problem,

WAN1 Telecom DSL router with DDNS -->RB level4–>CPE

When Telecom have some maintenance on your routers, my router go down and I can no longer login into it remotely until it’s restarted.

I would like some ideas to create a script to puts in RB level4 that every hour makes an WAN’s IP traceroute ex. 208.67.222.222 and when it can’t work than restart the router inside from LAN.

  1. schedule traceroute ???
  2. restart router maybe /system telnet → IP-DSL-Router → admin → password → reboot

some ideas?

Thanks Cetalfio

try to use snmp write to reboot your router remotely