Re: [Nut-upsuser] Low Battery Problems

2020-06-26 Thread Mike Dillinger

*From:* Charles Lepple [mailto:clep...@gmail.com]
*To:* Mike Dillinger 
*Cc:* nut-upsuser@alioth-lists.debian.net
*Date:* Monday, June 22, 2020, 5:19 AM PDT
*Subject:* [Nut-upsuser] Low Battery Problems

I’d recommend a battery test. Starting the test via the front panel should be 
sufficient, or you might be able to do it with upscmd.

This should let the UPS firmware discharge the battery a bit, and see how long 
it should last.

Conceptually, “OL LB” is not inconsistent- it means the UPS has AC power, but 
the battery state of charge is reading low (as might happen after the UPS 
restarts after an extended power failure) . You might have a CPS unit where the 
battery voltage returned to NUT is hard-coded to 24.0 V, which is annoying, but 
should not affect internal decisions about shutdown. Example: 
https://networkupstools.org/ddl/Cyber_Power_Systems/CP1500PFCLCD.html and 
https://github.com/networkupstools/nut/issues/459#issuecomment-325163688



Thanks for the information.  I did initiate a deep test and it finished 
successfully.

I spent a fair amount of time look at this issue this weekend and ended up lowering override.battery.charge.low from 60 to 40 and the problem went away.  I haven't had any of the "OL LB" warnings since changing that threshold which has not been the case for a while now.  I think I'll try bumping override.battery.charge.low back up to 60 after running the test that you suggested and see how that works out. 


Hi Charles, et al,

Just to close the loop on this... Running the test has fixed the problem.  It's 
been a few days now and no more false LB warnings. I've returned the 
override.battery.charge.low setting to 60 as well and everything is fine.  
Thanks a lot for your help.

-MikeD

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 20:36:13 Gene Heskett wrote:

> On Monday 22 June 2020 18:50:25 Gene Heskett wrote:
> > On Monday 22 June 2020 18:03:16 Charles Lepple wrote:
> > > On Jun 22, 2020, at 3:36 PM, Charles Lepple wrote:
> > > > On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> > > >> So I just edited /etc/nut/upsd.users to add both the commands
> > > >> it claims to have but get this response to either:
> > > >
> > > > In your original example, you had multiple “instcmd =“ lines for
> > > > one user- I think the allowed commands all need to be listed on
> > > > one instcmd line.
> > >
> > > Ignore this, I misremembered (and didn't read far enough down the
> > > URL I sent). Multiple allowed commands are specified with one
> > > command per instcmd.
> >
> > Or as instcmds = ALL, which also doesn't work, ACCESS-DENIED.
> >
> > Aha!  Found it, very old version of upsmon.conf had gene as
> > operayor, not pi, but that didn't fix it until it had all been
> > restarted, so a quick battery test is underway.  And it was quick,
> > 15 secs OB.
> >
> > So a .deep its running now.
> > Broadcast message from n...@rpi4.coyote.den (somewhere) (Mon Jun 22
> > 18:35:49 202
> >
> > UPS myups@localhost on battery
> >
> > upsc myups says zero load, battery.runtime: 4080
> > The pi don't draw a lot when its not busy.
> >
> > I assume it will use about 90 % & switch back to line ending the a
> > deep test?
> >
> > In which case this might take hours,
>
> Quicker than I thought, 20:22 when it ran out of battery but instead
> of reverting to charge, it did a full shutdown. Is something
> miss-configured yet?
>
And apparently turned itself back on as its rebooted 3 minutes later and 
has put a bit of charge back in the battery already. Without any 
intervention from me.

> > Cheers, Gene Heskett
>
> Cheers, Gene Heskett


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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 18:50:25 Gene Heskett wrote:

> On Monday 22 June 2020 18:03:16 Charles Lepple wrote:
> > On Jun 22, 2020, at 3:36 PM, Charles Lepple wrote:
> > > On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> > >> So I just edited /etc/nut/upsd.users to add both the commands it
> > >> claims to have but get this response to either:
> > >
> > > In your original example, you had multiple “instcmd =“ lines for
> > > one user- I think the allowed commands all need to be listed on
> > > one instcmd line.
> >
> > Ignore this, I misremembered (and didn't read far enough down the
> > URL I sent). Multiple allowed commands are specified with one
> > command per instcmd.
>
> Or as instcmds = ALL, which also doesn't work, ACCESS-DENIED.
>
> Aha!  Found it, very old version of upsmon.conf had gene as operayor,
> not pi, but that didn't fix it until it had all been restarted, so a
> quick battery test is underway.  And it was quick, 15 secs OB.
>
> So a .deep its running now.
> Broadcast message from n...@rpi4.coyote.den (somewhere) (Mon Jun 22
> 18:35:49 202
>
> UPS myups@localhost on battery
>
> upsc myups says zero load, battery.runtime: 4080
> The pi don't draw a lot when its not busy.
>
> I assume it will use about 90 % & switch back to line ending the a
> deep test?
>
> In which case this might take hours,
>
Quicker than I thought, 20:22 when it ran out of battery but instead of 
reverting to charge, it did a full shutdown. Is something 
miss-configured yet?

> Cheers, Gene Heskett


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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Mike Dillinger

*From:* Charles Lepple [mailto:clep...@gmail.com]
*To:* Mike Dillinger 
*Cc:* nut-upsuser@alioth-lists.debian.net
*Date:* Monday, June 22, 2020, 5:19 AM PDT
*Subject:* [Nut-upsuser] Low Battery Problems

I’d recommend a battery test. Starting the test via the front panel should be 
sufficient, or you might be able to do it with upscmd.

This should let the UPS firmware discharge the battery a bit, and see how long 
it should last.

Conceptually, “OL LB” is not inconsistent- it means the UPS has AC power, but 
the battery state of charge is reading low (as might happen after the UPS 
restarts after an extended power failure) . You might have a CPS unit where the 
battery voltage returned to NUT is hard-coded to 24.0 V, which is annoying, but 
should not affect internal decisions about shutdown. Example: 
https://networkupstools.org/ddl/Cyber_Power_Systems/CP1500PFCLCD.html and 
https://github.com/networkupstools/nut/issues/459#issuecomment-325163688



Thanks for the information.  I did initiate a deep test and it finished 
successfully.

I spent a fair amount of time look at this issue this weekend and ended up lowering 
override.battery.charge.low from 60 to 40 and the problem went away.  I haven't had any 
of the "OL LB" warnings since changing that threshold which has not been the 
case for a while now.  I think I'll try bumping override.battery.charge.low back up to 60 
after running the test that you suggested and see how that works out.

Thanks again!
-MikeD

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 18:05:56 Charles Lepple wrote:

> On Jun 22, 2020, at 3:42 PM, Gene Heskett wrote:
> > pi@rpi4:~ $ sudo nano /etc/nut/upsd.users
> > pi@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
> 

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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 18:03:16 Charles Lepple wrote:

> On Jun 22, 2020, at 3:36 PM, Charles Lepple wrote:
> > On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> >> So I just edited /etc/nut/upsd.users to add both the commands it
> >> claims to have but get this response to either:
> >
> > In your original example, you had multiple “instcmd =“ lines for one
> > user- I think the allowed commands all need to be listed on one
> > instcmd line.
>
> Ignore this, I misremembered (and didn't read far enough down the URL
> I sent). Multiple allowed commands are specified with one command per
> instcmd.

Or as instcmds = ALL, which also doesn't work, ACCESS-DENIED.

Aha!  Found it, very old version of upsmon.conf had gene as operayor, not 
pi, but that didn't fix it until it had all been restarted, so a quick 
battery test is underway.  And it was quick, 15 secs OB.

So a .deep its running now.
Broadcast message from n...@rpi4.coyote.den (somewhere) (Mon Jun 22 
18:35:49 202

UPS myups@localhost on battery

upsc myups says zero load, battery.runtime: 4080
The pi don't draw a lot when its not busy.

I assume it will use about 90 % & switch back to line ending the a deep 
test?

In which case this might take hours,

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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Charles Lepple
On Jun 22, 2020, at 3:42 PM, Gene Heskett wrote:
> 
> pi@rpi4:~ $ sudo nano /etc/nut/upsd.users
> pi@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 


___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Charles Lepple
On Jun 22, 2020, at 3:36 PM, Charles Lepple wrote:
> 
> On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
>> 
>> So I just edited /etc/nut/upsd.users to add both the commands it claims 
>> to have but get this response to either:
> 
> In your original example, you had multiple “instcmd =“ lines for one user- I 
> think the allowed commands all need to be listed on one instcmd line.

Ignore this, I misremembered (and didn't read far enough down the URL I sent). 
Multiple allowed commands are specified with one command per instcmd.





___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 16:30:40 Larry Fahnoe wrote:

> On Mon, Jun 22, 2020 at 2:45 PM Gene Heskett  
wrote:
> > On Monday 22 June 2020 15:36:21 Charles Lepple wrote:
> > > On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> > > > So I just edited /etc/nut/upsd.users to add both the commands it
> > > > claims to have but get this response to either:
> > >
> > > In your original example, you had multiple “instcmd =“ lines for
> > > one user- I think the allowed commands all need to be listed on
> > > one instcmd line.
> >
> > They are now # commented, and instcmds  = ALL added in a new line. 
> > Made zero diff.
>
> If instcmds = ALL is not working, makes me wonder if the problem is
> more with the declaration of the pi user in upsd.users. Is there any
> chance you're supplying the linux password for pi rather than the one
> defined in upsd.users?
>
> --Larry
No, hey are visibly identical.

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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Larry Fahnoe
On Mon, Jun 22, 2020 at 2:45 PM Gene Heskett  wrote:

> On Monday 22 June 2020 15:36:21 Charles Lepple wrote:
>
> > On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> > > So I just edited /etc/nut/upsd.users to add both the commands it
> > > claims to have but get this response to either:
> >
> > In your original example, you had multiple “instcmd =“ lines for one
> > user- I think the allowed commands all need to be listed on one
> > instcmd line.
>
> They are now # commented, and instcmds  = ALL added in a new line.  Made
> zero diff.
>

If instcmds = ALL is not working, makes me wonder if the problem is more
with the declaration of the pi user in upsd.users. Is there any chance
you're supplying the linux password for pi rather than the one defined in
upsd.users?

--Larry

-- 
Larry Fahnoe, Fahnoe Technology Consulting, fah...@fahnoetech.com
   Minneapolis, Minnesota   www.FahnoeTech.com
___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 15:36:21 Charles Lepple wrote:

> On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> > So I just edited /etc/nut/upsd.users to add both the commands it
> > claims to have but get this response to either:
>
> In your original example, you had multiple “instcmd =“ lines for one
> user- I think the allowed commands all need to be listed on one
> instcmd line.

They are now # commented, and instcmds  = ALL added in a new line.  Made 
zero diff.

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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 15:26:23 Larry Fahnoe wrote:

> On Mon, Jun 22, 2020 at 12:26 PM Gene Heskett  
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@rpi4:~ $ upscmd myups test.battery.start.quick
> > Username (pi): pi
> > Password:
> > Unexpected response from upsd: ERR ACCESS-DENIED
> > pi@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@rpi4:~ $ sudo nano /etc/nut/upsd.users
pi@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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Charles Lepple
On Jun 22, 2020, at 1:26 PM, Gene Heskett wrote:
> 
> So I just edited /etc/nut/upsd.users to add both the commands it claims 
> to have but get this response to either:

In your original example, you had multiple “instcmd =“ lines for one user- I 
think the allowed commands all need to be listed on one instcmd line. 
___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Larry Fahnoe
On Mon, Jun 22, 2020 at 12:26 PM Gene Heskett  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@rpi4:~ $ upscmd myups test.battery.start.quick
> Username (pi): pi
> Password:
> Unexpected response from upsd: ERR ACCESS-DENIED
> pi@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?

-- 
Larry Fahnoe, Fahnoe Technology Consulting, fah...@fahnoetech.com
   Minneapolis, Minnesota   www.FahnoeTech.com
___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 09:50:50 Larry Fahnoe wrote:

> On Mon, Jun 22, 2020 at 8:27 AM Gene Heskett  
wrote:
> > > On Jun 22, 2020, at 8:52 AM, Gene Heskett wrote:
> > > > pi@rpi4:~ $ upscmd myups *test.battery.start.quick*
> > > > Username (pi):
> > > > Password:
> > > > Unexpected response from upsd: ERR ACCESS-DENIED
> >
> > [pi]
> > password  = x
> > instcmds  = *test.battery.start*
> > instcmds  = test.battery.stop
> > calibrate.start
> > calibrate.stop
>
> Hi Gene,
>
> Looks like it might be that you're allowing test.battery.start but
> executing test.battery.start.quick. You'd think one would imply the
> other, but maybe not.

Apparently not:

pi@rpi4:~ $ upscmd myups test.battery.start
Username (pi): pi
Password:
Unexpected response from upsd: ERR CMD-NOT-SUPPORTED

It's working, but me goes away scratching what little hair I have left.

So I just edited /etc/nut/upsd.users to add both the commands it claims 
to have but get this response to either:

pi@rpi4:~ $ upscmd myups test.battery.start.quick
Username (pi): pi
Password:
Unexpected response from upsd: ERR ACCESS-DENIED
pi@rpi4:~ $ upscmd myups test.battery.start.deep
Username (pi): pi
Password:
Unexpected response from upsd: ERR ACCESS-DENIED

Back to scratching head. That gets boring too.

Thanks, Larry.
> --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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Larry Fahnoe
On Mon, Jun 22, 2020 at 8:27 AM Gene Heskett  wrote:

>
> > On Jun 22, 2020, at 8:52 AM, Gene Heskett wrote:
> > > pi@rpi4:~ $ upscmd myups *test.battery.start.quick*
> > > Username (pi):
> > > Password:
> > > Unexpected response from upsd: ERR ACCESS-DENIED
>
> [pi]
> password  = x
> instcmds  = *test.battery.start*
> instcmds  = test.battery.stop
> calibrate.start
> calibrate.stop
>


Hi Gene,

Looks like it might be that you're allowing test.battery.start but
executing test.battery.start.quick. You'd think one would imply the other,
but maybe not.

--Larry

-- 
Larry Fahnoe, Fahnoe Technology Consulting, fah...@fahnoetech.com
   Minneapolis, Minnesota   www.FahnoeTech.com
___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 09:18:29 Charles Lepple wrote:

> On Jun 22, 2020, at 8:52 AM, Gene Heskett wrote:
> > pi@rpi4:~ $ upscmd myups test.battery.start.quick
> > Username (pi):
> > Password:
> > Unexpected response from upsd: ERR ACCESS-DENIED
> >
> > Looking at /etc/nut/uspd.users, I (me, pi) should be able to do
> > that. ???
>
> Hi Gene,
>
> You have a [pi] section in upsd.users, then? If it's one of the
> example users from the man page or comments, you'll need to use that
> name with upscmd, or change upsd.users.
>
> Plus, you'll need "instcmds = all" (or the specific test command) in
> the section for that NUT user.
>
> Ref: https://networkupstools.org/docs/man/upsd.users.html
> 

I think its all there. Heresa snip, edited
[pi]
password  = x
instcmds  = test.battery.start
instcmds  = test.battery.stop
calibrate.start
calibrate.stop

#
# --- Configuring for upsmon
#
# To add a user for your upsmon, use this example:
#
[upsmon]
password  = x
upsmon master


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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Charles Lepple
On Jun 22, 2020, at 8:52 AM, Gene Heskett wrote:
> 
> pi@rpi4:~ $ upscmd myups test.battery.start.quick
> Username (pi):
> Password:
> Unexpected response from upsd: ERR ACCESS-DENIED
> 
> Looking at /etc/nut/uspd.users, I (me, pi) should be able to do that. ???
> 
Hi Gene,

You have a [pi] section in upsd.users, then? If it's one of the example users 
from the man page or comments, you'll need to use that name with upscmd, or 
change upsd.users.

Plus, you'll need "instcmds = all" (or the specific test command) in the 
section for that NUT user.

Ref: https://networkupstools.org/docs/man/upsd.users.html 


___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Gene Heskett
On Monday 22 June 2020 08:19:15 Charles Lepple wrote:

> > On Jun 18, 2020, at 12:39 PM, Mike Dillinger wrote:
> >
> > ups.test.result: No test initiated
>
> I’d recommend a battery test. Starting the test via the front panel
> should be sufficient, or you might be able to do it with upscmd.
from man pi@rpi4:~ $ upscmd -l myups
Instant commands supported on UPS [myups]:

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

pi@rpi4:~ $ upscmd myups test.battery.start.quick
Username (pi):
Password:
Unexpected response from upsd: ERR ACCESS-DENIED

Looking at /etc/nut/uspd.users, I (me, pi) should be able to do that. ???

Some help plz.

> This should let the UPS firmware discharge the battery a bit, and see
> how long it should last.
>
> Conceptually, “OL LB” is not inconsistent- it means the UPS has AC
> power, but the battery state of charge is reading low (as might happen
> after the UPS restarts after an extended power failure) . You might
> have a CPS unit where the battery voltage returned to NUT is
> hard-coded to 24.0 V, which is annoying, but should not affect
> internal decisions about shutdown. Example:
> https://networkupstools.org/ddl/Cyber_Power_Systems/CP1500PFCLCD.html
> and
> https://github.com/networkupstools/nut/issues/459#issuecomment-3251636
>88


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 

___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Re: [Nut-upsuser] Low Battery Problems

2020-06-22 Thread Charles Lepple
> On Jun 18, 2020, at 12:39 PM, Mike Dillinger wrote:
> 
> ups.test.result: No test initiated

I’d recommend a battery test. Starting the test via the front panel should be 
sufficient, or you might be able to do it with upscmd.

This should let the UPS firmware discharge the battery a bit, and see how long 
it should last.

Conceptually, “OL LB” is not inconsistent- it means the UPS has AC power, but 
the battery state of charge is reading low (as might happen after the UPS 
restarts after an extended power failure) . You might have a CPS unit where the 
battery voltage returned to NUT is hard-coded to 24.0 V, which is annoying, but 
should not affect internal decisions about shutdown. Example: 
https://networkupstools.org/ddl/Cyber_Power_Systems/CP1500PFCLCD.html and 
https://github.com/networkupstools/nut/issues/459#issuecomment-325163688___
Nut-upsuser mailing list
Nut-upsuser@alioth-lists.debian.net
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser