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
- Verify that PHP CLI in installed
- Execute
php -v
and see that PHP v5 or greater is installed
- Execute
- Run Composer Installs ( More Details @ https://getcomposer.org/ )
- In the project directory, execute:
composer install
- In the project directory, execute:
- 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)
- Execute
- Execute the Script Directly
- Execute
php /{your path}/modem-watcher/getSbDetails.php
- Execute
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.