- 2,486
- 839
- NAS
- Synology, TrueNAS
- Operating system
- Linux
- Windows
So,
I spent several hours with discovering of this:
1. Each DSM contains a feature "Synology UPS server"
you can setup it by Control panel/Hardware & Power/UPS/Network UPS Type + Enable UPS Server
it can helps you to manage another NASes connected to your LAN as the Synology UPS server
2. Then each DSM contains installation of well known Network UPS Tools (NUT).
This installation is part of Default DSM installation.
Otherwise you can't connect Network UPS.
3. You can check it by several methods:
a) in official NUT web:
b) in SSH for your DSM:
/usr/syno/etc/ups/ups.conf
/usr/syno/etc/ups/upsd.users
/usr/syno/etc/ups/upsmon.conf
/usr/syno/etc/ups/upssched.conf
..... and here is link to official NUT page (configs and commands documentation):
4. Then doesn't matter how is your NAS connected to your UPS:
a) by USB
b) by network
all UPS management in the DSM is driven by NUT.
5. One of the common NUT command is:
when you don't know how is name of your UPS in DSM, just put:
you will get list all UPS names configured at host
then:
and you can get all necessary info directly from your UPS:
6. There is a hard-coded script by Syno engineers in DSM:
/usr/syno/bin/synoups
which doesn't work properly
Verdict:
1. Synology Support (1st line) is traditionally out of the understanding, that this isn't question related to: "How to switch ON the NAS."
Now we need wait again next 14 days for some from deep support level.
2. Maybe a challenge for some, who can write a script based on:
- status of UPS - ONBATT - when UPS is running on batteries .... taken from NUT
- "battery.charge" variable from "upsc ups@localhost" ... when 100 means 100% .... taken from NUT
- then we can setup in new variable (e.g. ups_custom.conf) a level in % of the UPS batteries for regular shutdown of the NAS, or for Safemode, or for ...
what is 100x better than today status, when Syno engineers can do just Safe mode by defined time or by "Until low battery" triggers.
I spent several hours with discovering of this:
1. Each DSM contains a feature "Synology UPS server"
you can setup it by Control panel/Hardware & Power/UPS/Network UPS Type + Enable UPS Server
it can helps you to manage another NASes connected to your LAN as the Synology UPS server
2. Then each DSM contains installation of well known Network UPS Tools (NUT).
This installation is part of Default DSM installation.
Otherwise you can't connect Network UPS.
3. You can check it by several methods:
a) in official NUT web:
Synology has worked closely with Arnaud to integrate UPS support on all its devices.
b) in SSH for your DSM:
/usr/syno/etc/ups/ups.conf
/usr/syno/etc/ups/upsd.users
/usr/syno/etc/ups/upsmon.conf
/usr/syno/etc/ups/upssched.conf
..... and here is link to official NUT page (configs and commands documentation):
4. Then doesn't matter how is your NAS connected to your UPS:
a) by USB
b) by network
all UPS management in the DSM is driven by NUT.
5. One of the common NUT command is:
when you don't know how is name of your UPS in DSM, just put:
Code:
upsc -l
then:
Code:
upsc ups@localhost
6. There is a hard-coded script by Syno engineers in DSM:
/usr/syno/bin/synoups
which doesn't work properly
Verdict:
1. Synology Support (1st line) is traditionally out of the understanding, that this isn't question related to: "How to switch ON the NAS."
Now we need wait again next 14 days for some from deep support level.
2. Maybe a challenge for some, who can write a script based on:
- status of UPS - ONBATT - when UPS is running on batteries .... taken from NUT
- "battery.charge" variable from "upsc ups@localhost" ... when 100 means 100% .... taken from NUT
- then we can setup in new variable (e.g. ups_custom.conf) a level in % of the UPS batteries for regular shutdown of the NAS, or for Safemode, or for ...
what is 100x better than today status, when Syno engineers can do just Safe mode by defined time or by "Until low battery" triggers.