Difference between revisions of "UPS Handling with NUT"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "* <code>sudo apt install nut</code> * <code>ll /etc/nut/</code> * <code>vi /etc/nut/nut.conf</code> * <code>sudo vi /etc/nut/nut.conf</code> * <code>sudo vi /etc/nut/ups.conf</code> * <code>sudo upsdrvctl start</code> * <code>ip a</code> * <code>sudo vi /etc/nut/upsd.conf</code> * <code>sudo vi /etc/nut/upsd.users</code> * <code>sudo vi /etc/nut/upsmon.conf</code> * <code>sudo service nut-server restart</code> * <code>sudo service nut-server status</code> * <code>upsc...")
 
Line 1: Line 1:
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- <!-- Debian -->
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 11 (bullseye)
{{!}}
{{!}}}
{{{!}} class="wikitable" style="border-collapse: collapse; width: 33%; left;"
{{!}}- style="text-align: center;" 
! style="width: 50%;" colspan="2" {{!}} As always...
{{!}}-
{{!}} {{!}}
Start with:
{{!}} {{!}}
*<code>sudo apt update</code>
*<code>sudo apt upgrade</code>
{{!}}}
= Install NUT =
* <code>sudo apt install nut</code>
* <code>sudo apt install nut</code>
= Configure NUT =
* <code>ll /etc/nut/</code>
* <code>ll /etc/nut/</code>
* <code>vi /etc/nut/nut.conf</code>
* <code>vi /etc/nut/nut.conf</code>
Line 10: Line 34:
* <code>sudo vi /etc/nut/upsd.users</code>
* <code>sudo vi /etc/nut/upsd.users</code>
* <code>sudo vi /etc/nut/upsmon.conf</code>
* <code>sudo vi /etc/nut/upsmon.conf</code>
= Manage NUT =


* <code>sudo service nut-server restart</code>
* <code>sudo service nut-server restart</code>

Revision as of 18:56, 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

  • ll /etc/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