Advertisement
pulser_777

Untitled

Jun 10th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.67 KB | None | 0 0
  1. root@raspi:/etc/apcupsd# diff apccontrol.orig apccontrol
  2. 83a84
  3. >       atq -q E | cut -f 1 | xargs atrm
  4. 86a88
  5. >       at -q E -f /etc/apcupsd/esx-on -M now + 5minutes
  6. 107c109,110
  7. <       ${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot"
  8. ---
  9. >       # ${SHUTDOWN} -r now "apcupsd UPS ${2} initiated reboot"
  10. >       ssh esx.example.com -C "/bin/reboot"
  11. 111c114,115
  12. <       ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
  13. ---
  14. >       # ${SHUTDOWN} -h now "apcupsd UPS ${2} initiated shutdown"
  15. >       ssh esx.example.com -C "/bin/poweroff"
  16. root@raspi:/etc/apcupsd# cat /etc/apcupsd/esx-on
  17. ipmitool -I lanplus -H esx.example.com -U admin -P admin chassis power on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement