Skip to content

Instantly share code, notes, and snippets.

@jdai
jdai / APC PDU Monitor Instructions
Created July 28, 2022 02:49 — forked from bmatherly/APC PDU Monitor Instructions
Script to control an APC MasterSwitch PDU to reset an outlet when the network stops working
sudo cp netmonitor.sh /usr/bin/netmonitor.sh
sudo chmod 755 /usr/bin/netmonitor.sh
sudo crontab -e
Add to crontab:
*/2 * * * * /usr/bin/netmonitor.sh 2>&1 | /usr/bin/logger -t netmonitor