Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@raspi:/etc/apcupsd# diff apccontrol.orig apccontrol
- 83a84
- > atq -q E | cut -f 1 | xargs atrm
- 86a88
- > at -q E -f /etc/apcupsd/esx-on -M now + 5minutes
- 107c109,110
- < ${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot"
- ---
- > # ${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot"
- > ssh esx.example.com -C "/bin/reboot"
- 111c114,115
- < ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
- ---
- > # ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
- > ssh esx.example.com -C "/bin/poweroff"
- root@raspi:/etc/apcupsd# cat /etc/apcupsd/esx-on
- ipmitool -I lanplus -H esx.example.com -U admin -P admin chassis power on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement