Automating the reboot of a cable modem should the internet be unreachable
The scripts were tested with Ubuntu 16.04 and executed via a cron job.
- reboot_modem.sh bash script
- reboot_modem.exp expect sript
- APC PDU
The bash script checks availabilty of a server and if considered down will execute an expect script which will telnet to an APC PDU and cycle the power to an outlet.