NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
AdrianM
Feb 20, 2020Tutor
Remote management of UPS connected to ReadyNAS 102
I have several linux clients powered from the same UPS powering the ReadyNAS 102 (OS6.10.2), which is also connected via USB and set to enable network monitoring of the UPS (a stack of Raspberry Pi's all sharing the NAS and UPS).
NUT is set up on all the clients and it all works like a charm - in so much as everything shuts down during a power-fail. However, I would also like to be able to issue 'instant commands' to the UPS from one of the clients. Checking what commands are supported with upscmd -l UPS@my_nas_ip_address I initially got this list back:
Instant commands supported on UPS [UPS]: beeper.disable - Disable the UPS beeper beeper.enable - Enable the UPS beeper beeper.mute - Temporarily mute the UPS beeper beeper.off - Obsolete (use beeper.disable or beeper.mute) beeper.on - Obsolete (use beeper.enable) load.off - Turn off the load immediately load.off.delay - Turn off the load with a delay (seconds) load.on - Turn on the load immediately load.on.delay - Turn on the load with a delay (seconds) shutdown.return - Turn off the load and return when power is back shutdown.stayoff - Turn off the load and remain off shutdown.stop - Stop a shutdown in progress test.battery.start.deep - Start a deep battery test test.battery.start.quick - Start a quick battery test test.battery.stop - Stop the battery test
To issue any of the above commands required adding a user with the appropriate priveledges so I edited /etc/nut/upsd.users on the NAS to give user 'commander' access to all instant commands:
[monuser] password = pass upsmon master [commander] password = pass instcmds = all
Then issuing upscmd -u commander -p pass UPS@my_nas_ip_address beeper.disable from any client stops the beep. Cool.
However, while this did indeed work fine to begin with, on re-starting the ReadyNAS I find that the commands are no longer listed:
Instant commands supported on UPS [UPS]:
and somehow the /etc/nut/upsd.users file had been altered as follows:
[monuser] password = pass upsmon master [commander] password = pass upsmon slave
Not beleiving it could be any fault other than my own, I put the user priveledges back in the file and tried again. On re-boot the file reverted once again. What shenanegans are going on to do this - and how can I prevent it? Also, where did the list of instant commands go?
1 Reply
Replies have been turned off for this discussion
- SandsharkSensei
Unfortunately, Netgear has monkeyed around with NUT, and configuration files are re-written each time the NAS boots and finds an UPS attached.. It is also impossible to completely disable it, which I want to do because it interfers with the Eaton Intellegent Power Protector software I have loaded (that's far more comprehensive on my Eaton UPS than NUT). Every time I boot I have to manully disable the UPS in the GUI to prevent NUT and IPP from fighting over the UPS port.
There must be something embedded in the GUI or other Netgear code that does this, as I can find no startup file to disable and stop their shenanigans.
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!