Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2015-02-09
02:14 PM
2015-02-09
02:14 PM
Automated Reboot of CM400 Modem via curl or other mechanism?
I just got a Netgear CM400 cable modem, and was pleased to see that the web interface has a reboot function. My cable service (Cox) has be been flakely of late, and I've been needing to manually power-cycle my modem (this one and and the old one) on occasion to restore connectivity.
Normally, this isn't a problem, if I'm at home, but since I run some personal servers at home that I access over the internet, I would like to automate this process by having a script run periodically on the server computer to test the connection, and force the modem reboot if the connection seems bad.
I was looking at the html/js, and came up with this curl command, which seems to mimic the form submission done by the web page:
Unfortunately, this results in a "401 Unauthorized" message.
Can anyone suggest a fix to this, or another scriptable command that would allow to me automate the rebooting of the modem?
Thanks!
Normally, this isn't a problem, if I'm at home, but since I run some personal servers at home that I access over the internet, I would like to automate this process by having a script run periodically on the server computer to test the connection, and force the modem reboot if the connection seems bad.
I was looking at the html/js, and came up with this curl command, which seems to mimic the form submission done by the web page:
curl --user adminassword --data "buttonSelect=2&wantype=dhcp&enable_apmode=0" http://192.168.100.1/goform/RouterStatus
Unfortunately, this results in a "401 Unauthorized" message.
Can anyone suggest a fix to this, or another scriptable command that would allow to me automate the rebooting of the modem?
Thanks!
Message 1 of 1