/modem-watcher

PHP script that watches for signal health and general operation of your Motorola Surfboard. Details are logged to SYSLOG for record-keeping.

Primary LanguagePHP

modem-watcher

PHP script that watches for signal health and general operation of your Motorola SB6121 Surfboard. Details are logged to SYSLOG for record-keeping.

Setup and Usage

  1. Verify that PHP CLI in installed
    • Execute php -v and see that PHP v5 or greater is installed
  2. Run Composer Installs ( More Details @ https://getcomposer.org/ )
    • In the project directory, execute: composer install
  3. Set the Cron
    • Execute crontab -e
    • Add 0 * * * * php /{your path}/modem-watcher/getSbDetails.php to the end (this set the script to run every hour)
  4. Execute the Script Directly
    • Execute php /{your path}/modem-watcher/getSbDetails.php

Details and Models Supported

This script loads the web interface for you Motorola surfboard and parses the page. It grabs details related to the status of the device and its signal strength. All the details are written to SYSLOG with the application stamp of "modem-watcher."

Currently, this script has only been tested using a model SB6121 Motorola Surfboard. I am interested in hearing about your success and failure on a specific model number.