NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
gyruss
Aug 02, 2020Aspirant
Command or script to reboot Nighthawk M1?
Is there a command or script to reboot the Nighthawk M1 without entering the gui?
gyruss
Aug 02, 2020Aspirant
I tried that script but for some reason didn't detected that my connection was down. Perhaps because only the ports 80 and 443 are the only ones blocked. Also I have tried logging to the router and turning off and on the data but that didn't work either. The reboot did the job.
icaruspony
Aug 02, 2020Luminary
Ports 80 and 443... sounds like AT&T. Connected Car Plan?
You can easily modify the script to detect a web connection:
import httplib conn = httplib.HTTPConnection("www.netgear.com")
conn.request("HEAD", "/")
r1 = conn.getresponse() print r1.status, r1.reason
If it is reachable, it returns:
200 OK
You could also modify the on/off data to click the reboot button in the router. I've also heard changing bands is like a reboot when it comes to this problem.
- gyrussAug 02, 2020Aspirant
Thanks for replying. It is not a car plan, is an unlimited plus. I got the nighthawk when they allowed to have the nighthawk with this plan. Thanks for the code to detect a web connection. I really dont know the python language. Do you know the code to reboot or change bands? Thanks.
- gyrussAug 02, 2020AspirantYes, changing bands works for me. What I'm missing now is the code to change band instead of turning off/on the data.