× We are experiencing an outage with Chat Support, Knowledgebase Articles and guided assistance.
× Sept. 1st 12AM to 3AM PT Self-Service Online Portal and Support Phone Lines unavailable for scheduled maintenance.
× We are experiencing an outage of our ReadyCloud service and are working to resolve the issue..
× It's CES week! Don't miss the #NetgearCES2019 Coverage!

This topic has been closed to new posts due to inactivity. We hope you'll join the conversation by posting to an open topic or starting a new one.

NETGEAR ® COMMUNITY
  • Downloads
  • MyNETGEAR
  • Community
  • Support
  • Netgear
  • United States
    • 中国 (汉语)
    • Deutschland (Deutsch)
    • España (Español)
    • France (Français)
    • Italia (Italiano)
    • 日本 (日本語)
    • United States (English)
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for 
Search instead for 
Did you mean: 
  • English
  • /
  • NETGEAR Forum
  • /
  • Home Networking
  • /
  • Legacy for Home
  • /
  • Wired Routers
  • /
  • Automated Reboot of CM400 Modem via curl or other ...
Log In
Join Now
  • Community Home
  • Community Browser:
  • NETGEAR Website
  • Support
  • Downloads
  • MyNETGEAR
Log In
  • English
  • /
  • NETGEAR Forum
  • /
  • Home Networking
  • /
  • Legacy for Home
  • /
  • Wired Routers
  • /
  • Automated Reboot of CM400 Modem via curl or other ...
  • Join Now
  • |
  • Log In
  • |
  • Help
Discussion stats
  • 0 replies
  • ‎2015-02-09 02:14 PM
  • 10738 views
  • 1 kudo
  • 1 in conversation
    • anville
Announcements

Upgrade power adapters for PoE Switches now available

Tell us your NETGEAR Switch Story and Win $500!

Insight 5.5 Now Available

What's New @Netgear - #NetgearCES2019 Coverage!

Extend your NETGEAR Business Products Warranties & Support - Learn More

NETGEAR Service Status Page - LIVE

World's First Mesh WiFi System with Amazon Alexa Built-in and Harman Kardon Audio - Orbi Voice

NETGEAR Insight Pro Network Management System enables higher profitability for Resellers

The NEW Nighthawk Pro Gaming Router & Nighthawk Pro Gaming Switch - Power To Win!

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
  • All forum topics
  • Previous Topic
  • Next Topic
anville
anville Novice
Novice
  • Mark as New
  • Bookmark
  • Subscribe
  • Subscribe to RSS Feed
  • Permalink
  • Print
  • 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:

curl --user adminSmiley Tongueassword --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
1 Kudo
Reply
  • All forum topics
  • Previous Topic
  • Next Topic
Need More Help?
  • Contact Support
  • About Us
  • Investor Relations
  • Contact us
  • Careers
  • Sign Up
  • United States
    • 中国 (汉语)
    • Deutschland (Deutsch)
    • España (Español)
    • France (Français)
    • Italia (Italiano)
    • 日本 (日本語)
    • United States (English)

© 1996-2019 NETGEAR®