Difference between revisions of "UPS Handling with NUT"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 24: Line 24:
= Configure NUT =
= Configure NUT =


* <code>ll /etc/nut/</code>
* <code>vi /etc/nut/nut.conf</code>
* <code>vi /etc/nut/nut.conf</code>
* <code>sudo vi /etc/nut/nut.conf</code>
* <code>sudo vi /etc/nut/nut.conf</code>
* <code>sudo vi /etc/nut/ups.conf</code>
* <code>sudo vi /etc/nut/ups.conf</code>

Revision as of 18:59, 3 February 2022

Proven on:
Logo Debian.png
11 (bullseye)
As always...

Start with:

  • sudo apt update
  • sudo apt upgrade

Install NUT

  • sudo apt install nut

Configure NUT

  • vi /etc/nut/nut.conf
  • sudo vi /etc/nut/nut.conf
  • sudo vi /etc/nut/ups.conf
  • sudo upsdrvctl start
  • ip a
  • sudo vi /etc/nut/upsd.conf
  • sudo vi /etc/nut/upsd.users
  • sudo vi /etc/nut/upsmon.conf

Manage NUT

  • sudo service nut-server restart
  • sudo service nut-server status
  • upsc cyberpower
  • upscmd -l cyberpower