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?
icaruspony
Aug 02, 2020Luminary
Perhaps you could modify that script that "turns off data and turns data back on" to do a reboot instead. Of course that script is used to fix certain problems without having to wait for a reboot, so, depending on what you are trying to accomplish, you may be trying to fit a square peg into a round hole instead of using the square hole right next to it.
- gyrussAug 02, 2020AspirantI 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.
- icarusponyAug 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.reasonIf 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.