Welcome to the official documentation for the CyberPower USB UPS Reset Toolkit. This toolkit helps automate detection, reset, and monitoring of CyberPower UPS devices via USB on Linux-based systems, including QNAP, Synology, and Docker/Kubernetes environments.
git clone https://github.com/Maistos-Stack-Hub-Lab/Usb-Ups-Reset-Repo.git
cd Usb-Ups-Reset-Repo
chmod +x */*.sh
./common/detect_usb_id.sh
*/10 * * * * /path/to/common/detect_usb_id.sh >> /var/log/ups-check.log 2>&1
To run this on Windows:
bash ./common/detect_usb_id.sh
git clone https://github.com/Maistos-Stack-Hub-Lab/Usb-Ups-Reset-Repo.git
cd Usb-Ups-Reset-Repo
chmod +x ./common/detect_usb_id.sh
./common/detect_usb_id.sh
system_profiler SPUSBDataType
to confirm UPS presence on USB.Deploy with the sample manifest:
kubectl apply -f k8s/deployment.yaml
docker-compose up --build -d
Store Slack tokens or SSH keys securely in Google Cloud Secret Manager. Example CI usage:
- uses: google-github-actions/auth@v1
with:
credentials_json: '$'
cyberpower ups usb monitoring linux automation docker kubernetes qnap synology devops github-actions nut snmp energy-management slack-alerts powerpanel nas iot tools server-scripts cron job reset reboot windows mac wsl
This documentation is hosted via GitHub Pages. For deployment instructions, visit Settings > Pages and select
main
>/docs
.