How to reboot Motorola SURFboard modem from command line

I got this annoying problem - my cable modem start acting weird after a while. So I wanted to setup cron job to restart it sometimes around 3am each day, but the problem is - there is no SSH or any kind of API access. But there is admin panel where you can click "Reboot" button. To solve this problem I used Zombie.js module:

sudo npm install zombie -g

and wrote small script to login into admin interface and click Reboot button:

var Browser = require("zombie");
var browser = new Browser();
browser.visit("", function() {
        .fill('loginUsername', 'admin')
        .fill('loginPassword', 'password')
        .pressButton("Login", function() {
            browser.visit("", function() {

Make it executable:

chmod +x reboot.js

And add it to crontab job:

* 3 * * * cd ~/bin/reboot_router && ./reboot.js


You potentially may automate much more tasks the same way. Zombie, unlike Phantom.JS or Casper.JS do not use webkit/gecko, therefore it is much more lightweight and does not require X. Downside of not being "real" browser engine is that it might not work well on sites with heavy use of Javascript, like Facebook. But for simpler pages it works very well!



I just use 'curl > /dev/null 2>&1' on my surfboard

I know this is an old post, but this is exactly what I was looking for. I installed zombie...i think it worked--no errors reported.

When I run the script I get this:

throw err;

Error: Cannot find module 'zombie'
at Function.Module._resolveFilename (module.js:440:15)
at Function.Module._load (module.js:388:25)
at Module.require (module.js:468:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/bierman/Documents/Applications/bin/reboot.js:3:15)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)

any suggestions?

Add new comment

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

To submit this form you need to use Internet Explorer v10+ or recent version of Chrome, Firefox or Safari.