restarting Motorola SB6121 cable modem through a script

Shell scripts, etc., that do interesting things.
User avatar
kw123
Posts: 8421
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

restarting Motorola SB6121 cable modem through a script

Post by kw123 »

for those who would like to restart their cable modem remotely:
the following command will reboot your cable modem. the address 192.168.100.1 is hardwired into the modem it does not change

in a terminal:

Code: Select all

curl http://192.168.100.1/reset.htm?&reset_modem=Restart%20Cable%20Modem
in applescript:

Code: Select all

do shell script "curl http://192.168.100.1/reset.htm?&reset_modem=Restart%20Cable%20Modem"
in PY:

Code: Select all

subprocess.Popen( "curl http://192.168.100.1/reset.htm?reset_modem=Restart%20Cable%20Modem",shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE).communicate()
just use your browser to get to the status page at 192.168.100.1
It shows signal levels, log files and also the reset button that is triggered by above commands.

Karl

Return to “Other Scripts”