Vecheslav A Grebenschikov
2009-Oct-24 16:32 UTC
[Nut-upsdev] Shutdown N-POWER MV-1000 LT UPS is not working
Hello! I use online UPS MV-1000 LT http://www.230v.ru/catalogue/?id=production/ups-sm/master-vision for the power of my Linux server SLES 10 SP1. I downloaded, compiled and configured diver nut 2.4.1 from this link http://www.networkupstools.org/source/2.4/nut-2.4.1.tar.gz Here are my configuration files: --- srv:/usr/local/ups # cat etc/ups.conf [npower] driver = megatec port = /dev/ttyS0 desc = "Srv" battvolts = 1.8:2.1 battvoltmult = 18 lowbatt = 10 srv:/usr/local/ups # ---- srv:/usr/local/ups # cat etc/upsd.conf LISTEN 127.0.0.1 LISTEN 192.168.0.10 srv:/usr/local/ups # --- srv:/usr/local/ups # cat etc/upsmon.conf # RUN_AS_USER ups MONITOR npower at localhost 1 admin karamba master MINSUPPLIES 1 SHUTDOWNCMD "/usr/local/ups/sbin/upsshut" NOTIFYCMD /usr/local/ups/bin/upsnotify POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG LOWBATT SYSLOG+EXEC NOTIFYFLAG FSD SYSLOG+EXEC NOTIFYFLAG COMMOK SYSLOG+EXEC NOTIFYFLAG COMMBAD SYSLOG+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+EXEC NOTIFYFLAG REPLBATT SYSLOG+EXEC NOTIFYFLAG NOCOMM SYSLOG+EXEC NOTIFYFLAG NOPARENT SYSLOG+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 srv:/usr/local/ups # --- srv:/var/run # upsc npower at localhost battery.charge: 100.0 battery.voltage: 41.40 battery.voltage.nominal: 36.0 driver.name: megatec driver.parameter.battvoltmult: 18 driver.parameter.battvolts: 1.8:2.1 driver.parameter.lowbatt: 10 driver.parameter.pollinterval: 2 driver.parameter.port: /dev/ttyS0 driver.version: 2.4.1 driver.version.internal: 1.6 input.frequency: 49.9 input.frequency.nominal: 50.0 input.voltage: 216.6 input.voltage.fault: 218.0 input.voltage.maximum: 219.4 input.voltage.minimum: 216.6 input.voltage.nominal: 220.0 output.voltage: 220.8 ups.beeper.status: disabled ups.delay.shutdown: 0 ups.delay.start: 2 ups.load: 12.0 ups.mfr: N-POWER 230V.ru ups.model: 2.1 ups.serial: unknown ups.status: OL ups.temperature: 47.0 ups.type: online srv:/var/run # --- Everything works. But I can not turn off the UPS after stopping the server operating system. How 'upsdrvctl shutdown' or 'megatec-a npower-k' or 'upscmd-u admin-p karamba npower shutdown.stayoff' does not bring results. I joined up with the UPS through a terminal program "minicom" and send commands to the description of the protocol megatec -> http://www.networkupstools.org/protocols/megatec.html Instruction S01 successfully stops the UPS, if there is no input voltage. This protocol confirms this --- Q1 (000.0 000.0 220.8 011 00.0 2.24 45.0 10000000 Q1 (000.0 000.0 220.8 011 00.0 2.24 45.0 10000000 Q1 (000.0 000.0 220.8 009 00.0 2.24 45.0 10000000 S01 Q1 (000.0 000.0 220.8 010 00.0 2.23 45.0 10000000 Q1 (000.0 000.0 220.8 011 00.0 2.21 45.0 10000000 Q1 (000.0 000.0 220.8 009 00.0 2.21 45.0 10000000 Q1 (000.0 000.0 000.0 000 00.0 2.21 45.0 10000010 Q1 (000.0 000.0 000.0 000 00.0 2.21 45.0 10000000 Q1 Q1 --- Please'll show what I configured wrong? Thanks in advance.
Arjen de Korte
2009-Oct-24 21:08 UTC
[Nut-upsdev] Shutdown N-POWER MV-1000 LT UPS is not working
Citeren Vecheslav A Grebenschikov <vecheslav at mail.ru>:> Here are my configuration files: > --- > srv:/usr/local/ups # cat etc/ups.conf > [npower] > driver = megatec > port = /dev/ttyS0 > desc = "Srv" > battvolts = 1.8:2.1 > battvoltmult = 18 > lowbatt = 10 > srv:/usr/local/ups #Add offdelay = 1 ondelay = 3 to the ups.conf file. Unfortunately, the default value of '0' is not accepted by older UPS implementations of the megatec protocol. Make sure to wait at least one minute after issuing this command. See also 'man 8 megatec'. You could also try the 'blazer_ser' driver, which uses more conservative defaults here. See 'man 8 blazer' for more information on this driver. Best regards, Arjen -- Please keep list traffic on the list