« Archives in April, 2013

Remotely Reboot Netgear MBRN3000

I made this script to remotely restart our MBRN3000 - Netgear; because there's no way to schedule this directly on the router.
I need to restart because randomly this UMTS router disconnect from the internet using the key and there's nothing  to do  to have the connection up again, except to poweroff the router.

I named the script rebootUMTS.sh and placed in /opt/

this is the code:

wget -q --post-data "button=reboot" http://USERNAME:PASSWORD@
echo `date` " - Restart router" >> /opt/restart.log

and in crontab I've schedule to run every days at 7:00AM 1:00PM 8:PM

*  7,13,20	*	*	*	/opt/rebootUMTS.sh