Re: [Nut-upsuser] Do I need to configure times and percents?
01.12.2014, 06:18, Charles Lepple clep...@gmail.com: On Nov 29, 2014, at 7:32 AM, Victor Porton por...@narod.ru wrote: On Debian Linux jessie: After buying an UPS and installation of nut-server and nut-client at my PC and configuring the ports and the protocol, do I need to adjust time and/or percentage parameters, to be sure my computer will be turned off automatically after a reasonable time after failing electricity? I would recommend testing with a dummy load to see if the UPS operates as you expect it to. In particular, there is no standard for a reasonable time for shutdown. In the default configuration, NUT's upsmon program shuts the system down after the UPS reports a low battery. Your UPS may or may not allow that threshold to be configured, so there are several other options if you want to shut down after a specific time on battery, or when other conditions are reached. My UPS is Advice PRS850. You may want to check the list archives to see if anyone else has additional information on other UPS models from this manufacturer: http://www.networkupstools.org/support.html#_mailing_lists It actually isn't on our hardware compatibility list: http://buildbot.networkupstools.org/~buildbot/cayman/docs/latest/stable-hcl.html If you post additional details (output of upsc and upsrw) someone may be able to offer more specific suggestions. $ upsc advice Init SSL without certificate database battery.charge: 100 battery.voltage: 13.70 battery.voltage.high: 13.00 battery.voltage.low: 10.40 battery.voltage.nominal: 12.0 device.type: ups driver.name: blazer_usb driver.parameter.pollinterval: 2 driver.parameter.port: /dev/ttyS0 driver.parameter.productid: 5161 driver.parameter.vendorid: 0665 driver.version: 2.7.2 driver.version.internal: 0.11 input.current.nominal: 3.0 input.frequency: 50.0 input.frequency.nominal: 50 input.voltage: 234.9 input.voltage.fault: 234.9 input.voltage.nominal: 230 output.voltage: 234.9 ups.beeper.status: enabled ups.delay.shutdown: 30 ups.delay.start: 180 ups.load: 18 ups.productid: 5161 ups.status: OL ups.type: offline / line interactive ups.vendorid: 0665 -- Victor Porton - http://portonvictor.org ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Do I need to configure times and percents?
On Dec 1, 2014, at 4:11 AM, Victor Porton por...@narod.ru wrote: battery.voltage: 13.70 battery.voltage.high: 13.00 battery.voltage.low: 10.40 These are the voltage thresholds for the UPS, so theoretically the UPS will send the LB signal when the battery voltage goes lower than 10.40 Volts. Also, if battery.charge works, you can use ignorelb if you want to shut down at another level of charge: http://www.networkupstools.org/docs/man/ups.conf.html#_ups_fields ups.delay.shutdown: 30 ups.delay.start: 180 These timers are in seconds. You will want to verify this, but according to those values, the UPS will shut off its output 30 seconds after the shutdown signal (so you need to make sure that your OS shutdown takes less time than that). Does upsrw -l advice show anything? -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Do I need to configure times and percents?
01.12.2014, 14:50, Charles Lepple clep...@gmail.com: On Dec 1, 2014, at 4:11 AM, Victor Porton por...@narod.ru wrote: battery.voltage: 13.70 battery.voltage.high: 13.00 battery.voltage.low: 10.40 These are the voltage thresholds for the UPS, so theoretically the UPS will send the LB signal when the battery voltage goes lower than 10.40 Volts. Also, if battery.charge works, you can use ignorelb if you want to shut down at another level of charge: http://www.networkupstools.org/docs/man/ups.conf.html#_ups_fields ups.delay.shutdown: 30 ups.delay.start: 180 These timers are in seconds. You will want to verify this, but according to those values, the UPS will shut off its output 30 seconds after the shutdown signal (so you need to make sure that your OS shutdown takes less time than that). Does upsrw -l advice show anything? $ upsrw -l advice upsrw: invalid option -- 'l' Network UPS Tools upsrw 2.7.2 usage: upsrw [-h] upsrw [-s variable] [-u username] [-p password] ups Demo program to set variables within UPS hardware. -hdisplay this help text -s variable specify variable to be changed use -s VAR=VALUE to avoid prompting for value -u username set username for command authentication -p password set password for command authentication ups UPS identifier - upsname[@hostname[:port]] Call without -s to show all possible read/write variables. -- Victor Porton - http://portonvictor.org ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Do I need to configure times and percents?
On Dec 1, 2014, at 9:19 AM, Victor Porton por...@narod.ru wrote: 01.12.2014, 14:50, Charles Lepple clep...@gmail.com: Does upsrw -l advice show anything? $ upsrw -l advice upsrw: invalid option -- 'l' I suppose I should read the documentation every once in a while :-) upsrw advice I was thinking of upscmd -l advice. -- Charles Lepple clepple@gmail ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Do I need to configure times and percents?
01.12.2014, 16:27, Charles Lepple clep...@gmail.com: On Dec 1, 2014, at 9:19 AM, Victor Porton por...@narod.ru wrote: 01.12.2014, 14:50, Charles Lepple clep...@gmail.com: Does upsrw -l advice show anything? $ upsrw -l advice upsrw: invalid option -- 'l' I suppose I should read the documentation every once in a while :-) upsrw advice upsrw advice outputs nothing. I was thinking of upscmd -l advice. -- Victor Porton - http://portonvictor.org ___ Nut-upsuser mailing list Nut-upsuser@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser