User Tools

Site Tools


esxi:cyberpower_powerpanel_business

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esxi:cyberpower_powerpanel_business [2022/08/08 19:04]
derek created
esxi:cyberpower_powerpanel_business [2024/09/22 19:51] (current)
Line 32: Line 32:
     * Power on the Cyberpower VM     * Power on the Cyberpower VM
   * Add ''http://cyberpower-ppb:3052/local/'' to Caddy   * Add ''http://cyberpower-ppb:3052/local/'' to Caddy
 +
 +===Pre-Config===
 +Extra things to be set in the command line before setting up PowerPanel.
 +
 +One issue with PowerPanel is that it constantly writes to ''/usr/local/PPB/db_local/filedb.log'' ([[https://www.reddit.com/r/HomeServer/comments/usno37/cyberpower_powerpanel_business_linux_excessive/]]). We fix this by installing and using [[https://wiki.archlinux.org/title/Anything-sync-daemon|Anything-sync-daemon]] to put the directory into a ram disk that gets synced to disk occasionally.
 +
 +  * Connect to ''admin@cyberpower-ppb'' using SSH and login with ''admin'' as the password.
 +<code bash>
 +# Change the default password:
 +passwd
 +
 +# Change the time zone to the one the server is in:
 +# Find your time zone using:
 +timedatectl list-timezones
 +# Then set it with:
 +sudo timedatectl set-timezone Australia/Perth
 +
 +# Set the hostname:
 +sudo hostnamectl set-hostname Cyberpower-PPB
 +
 +# Make sure the system is up to date
 +sudo apt update && sudo apt upgrade
 +
 +# Install Anything-sync-daemon
 +sudo apt install make pv zstd
 +git clone https://github.com/graysky2/anything-sync-daemon.git /tmp/asd
 +cd /tmp/asd
 +sudo make install-systemd-all
 +cd /
 +rm -R /tmp/asd
 +sudo nano /etc/asd.conf
 +# Edit the following lines:
 +WHATTOSYNC=()
 +#VOLATILE="/tmp"
 +#USE_OVERLAYFS="no"
 +# into:
 +WHATTOSYNC=('/usr/local/PPB/db_local')
 +VOLATILE="/dev/shm"
 +USE_OVERLAYFS="yes"
 +# Write out the file and exit
 +# Check to see if configured properly
 +sudo asd p
 +# Enable to run at startup
 +sudo systemctl enable asd.service
 +
 +sudo reboot 0
 +</code>
  
 ===Configuration=== ===Configuration===
Line 42: Line 89:
     * Sign in again with the new details     * Sign in again with the new details
     * ''UPS Setting'' > ''Configuration'' > ''Set Replacement Date'' to when the unit was purchased or the battery was last replaced     * ''UPS Setting'' > ''Configuration'' > ''Set Replacement Date'' to when the unit was purchased or the battery was last replaced
 +    * ''Setting'' > ''Network Configurations'' > ''Network Configurations'':
 +      * Enable ''HTTPS Secure''
 +      * Change the default ''HTTPS Port'' to something slightly different
 +      * Click ''Apply''
     * ''Setting'' > ''Notifications'':     * ''Setting'' > ''Notifications'':
       * ''Notification Channels'':       * ''Notification Channels'':
Line 85: Line 136:
  
 ====Update==== ====Update====
-  * FIXMENot sure about updates? +  * Using SSH, connect to ''admin@cyberpower-ppb'': 
-  * Include in the [[page>update_everything|Update Everything]] page using ''%%{{page>esxi:cyberpower_powerpanel_business#Update&noheader}}%%''+    * Run ''sudo apt update && sudo apt upgrade'' 
 +  * Visit [[http://cyberpower-ppb:3052/local/]]
 +    * Go to the ''Help'' tab, and ''Check for Updates''
  
 ====Sources==== ====Sources====
   * https://wiert.me/2021/07/09/automatically-shutting-down-an-esxi-6-7-server-from-a-cyberpower-ups-using-the-powerpanel-business-edition-4-x/   * https://wiert.me/2021/07/09/automatically-shutting-down-an-esxi-6-7-server-from-a-cyberpower-ups-using-the-powerpanel-business-edition-4-x/
  
 +====Notes====
 +  * Maybe try integrating into Home Assistant: https://community.home-assistant.io/t/monitor-cyberpower-ups-plugged-into-windows-machine-via-usb/170497/31
esxi/cyberpower_powerpanel_business.1659985483.txt.gz · Last modified: 2024/09/22 19:51 (external edit)