NethServer Version: 7.6.1810 Module: nut
How can I change the value battery.low in the config of NUT for the Back-UPS ES/CyberFort 350. Battery doesn’t have enough energy left to shutdown 2 nethserver machines in the vmware environment at battery.low=10
The password is set by nethserver-nut-conf action. If neither the command nor the server-manger ups section show a password, you can check if it’s set on /etc/ups/upsd.users file (e.g. tail -4 /etc/ups/upsd.users).
in upsd.users there is the pasword presented as displayed in the screen under /Configuration/UPS there the slave password is shown which is the same as in the upsd.users file.
The term for password in the instruction is written in lower cases, so I tried the command as follows:
Demo program to set variables within UPS hardware.
-h display this help text
-s specify variable to be changed
use -s VAR=VALUE to avoid prompting for value
-u set username for command authentication
-p set password for command authentication
UPS identifier - [@[:]]
Call without -s to show all possible read/write variables.
So now the interesting question is how to check whether the variable has been changed.
The command response showing the help section implies it failed.
The password term of config getprop command comes from nethserver’s e-smith database and starts with an uppercase letter.
I’m no expert on nut, but as the password for upsmon user is present on upsd.users file I will suggest to add it to the e-smith (nethserver) database.
First check it is not already set:
config getprop nut-server Password
If empty, you can set it with the value from upsd.users file (replace xxxxxxxxx with the proper password):
From the error I guess the user has no admin privileges, and a new user might need to be added (with a custom template) to upsd.users file.
EDIT: here is an untested example. Some steps could be missing (see nut manual, for example to set tcp-wrappers edit hosts.allow/deny, restarting service…), and the password could be randomly generated with a script: