On Monday 22 June 2020 15:26:23 Larry Fahnoe wrote:> On Mon, Jun 22, 2020 at 12:26 PM Gene Heskett <gheskett at shentel.net>wrote:> > So I just edited /etc/nut/upsd.users to add both the commands it > > claims to have but get this response to either: > > > > pi at rpi4:~ $ upscmd myups test.battery.start.quick > > Username (pi): pi > > Password: > > Unexpected response from upsd: ERR ACCESS-DENIED > > pi at rpi4:~ $ upscmd myups test.battery.start.deep > > Username (pi): pi > > Password: > > Unexpected response from upsd: ERR ACCESS-DENIED > > What about "instcmds = ALL" as a test, perhaps to rule out a parsing > error?Same result: pi at rpi4:~ $ sudo nano /etc/nut/upsd.users pi at rpi4:~ $ upscmd myups test.battery.start.deep Username (pi): pi Password: Unexpected response from upsd: ERR ACCESS-DENIED Interesting maybe, user 'nut' and group 'nut' own that whole diretory and contents. OTOH, pi is a member of group 'nut' ??? Thanks Larry. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>
On Jun 22, 2020, at 3:42 PM, Gene Heskett wrote:> > pi at rpi4:~ $ sudo nano /etc/nut/upsd.users > pi at rpi4:~ $ upscmd myups test.battery.start.deepYou'll need a "sudo upsd -c reload" in between editing the users file and trying a new command. https://networkupstools.org/docs/man/upsd.html <https://networkupstools.org/docs/man/upsd.html> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20200622/88fbf865/attachment.html>
On Monday 22 June 2020 18:05:56 Charles Lepple wrote:> On Jun 22, 2020, at 3:42 PM, Gene Heskett wrote: > > pi at rpi4:~ $ sudo nano /etc/nut/upsd.users > > pi at rpi4:~ $ upscmd myups test.battery.start.deep > > You'll need a "sudo upsd -c reload" in between editing the users file > and trying a new command. > > https://networkupstools.org/docs/man/upsd.html > <https://networkupstools.org/docs/man/upsd.html>I didn't know that, so I reached into /etc/init.d and restarted it all, one at a time, and a deep test that I expect will take half a day, is running now. I am assuming it will log the back on line time and start charging a nearly dead leadacid battery when it hits a 10% remaining voltage. Sometime in the night maybe. pi's don't draw much, not enough to register in a upsc report. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene>