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
Code: Select all
do shell script "curl http://192.168.100.1/reset.htm?&reset_modem=Restart%20Cable%20Modem"
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()
It shows signal levels, log files and also the reset button that is triggered by above commands.
Karl