Reset a Motorola SB6121 Modem via Script

0 Comments

In my last post of this nature I showed you how to reset the Cisco DPC2100R2 via a script, today we will be discussing how to reset a Motorola SB6121 modem via script. In a rather odd move my local ISP has decided to start charging $4 per month for “rental” of their provided modems. Now, keeping in mind I can not use the Internet without said modem, this just seems like bad business to me, kinda like my apartment complex charging me a rental fee for my front door! But I digress, this modem is far simpler to reset and as such the script is also a bit smaller.

This script uses the curl executable to request the modem to reboot. This script should again be tied to the Task Manager even that results from a failed DNS query, which is the easiest way I’ve found to tell the Internet is down.

Modem_Reboot.bat

set CURL_DIR=C:\Program Files (x86)\curl-7.30.0-rtmp-ssh2-ssl-sspi-zlib-idn-static-bin-w32
set SLEEP_TIME=60
set MODEM_ADDRESS=192.168.100.1

cd "%CURL_DIR%"

curl http://%MODEM_ADDRESS%/reset.htm > nul
timeout %SLEEP_TIME%

ipconfig /flushdns

Setup the Task Scheduler

If you do not know how to setup a task to reboot the modem then please see the images below, it shows you how to the task looks and how it should be setup.

Task Scheduler Interface Task Scheduler Interface with Task Created Task Scheduler Interface DNS Trigger

- By: Posted on:

Comments

Small ad here
Select a size at which to preview the size