[Nut-upsuser] Can't make Smart-UPS 1500 shutdown over serial

Jon Povey Jon.Povey at racelogic.co.uk
Mon Nov 10 16:07:31 UTC 2008


Hi folks,

Today I installed nut on my Dell Poweredge 1800 server running Ubuntu
8.04 Server, with an APC Smart-UPS 1500 connected to it with the black
APC cable.
I used apt to install nut, upsd -v gives me
"Network UPS Tools upsd 2.2.1-"

I then copied and configured the config files.

Most of the setup seems OK; I get console messages for line power fail /
good, and I can do instant commands to test the front panel and do a
test.failure.start - the UPS switches to battery power and back to line
power after a couple of seconds.

However the commands to shutdown the UPS don't seem to work.
shutdown.stayoff, shutdown.return and load.off all seem to silently do
nothing. Likewise upsdrvctl shutdown:

# upsdrvctl shutdown
Network UPS Tools - UPS driver controller 2.2.1-
Network UPS Tools (version 2.2.1-) - APC Smart protocol driver
        Driver version 1.99.8, command table version 2.0
Initiating UPS shutdown
On line, sending shutdown+return command...
#

(nothing happens on the UPS).

I "faked" a battery low ups shutdown by creating /etc/killpower with the
magic string in and doing a shutdown -h now. According to console output
it thought it was telling the UPS to power off.

Here's the output of upsc:

# upsc ups
battery.alarm.threshold: 0
battery.charge: 100.0
battery.charge.restart: 00
battery.date: 09/06/05
battery.packs: 000
battery.runtime: 3720
battery.runtime.low: 120
battery.voltage: 27.40
battery.voltage.nominal: 024
driver.name: apcsmart
driver.parameter.pollinterval: 2
driver.parameter.port: /dev/ttyS0
driver.parameter.sdtype: 0
driver.version: 2.2.1-
driver.version.internal: 1.99.8
input.frequency: 50.00
input.quality: FF
input.sensitivity: H
input.transfer.high: 253
input.transfer.low: 208
input.transfer.reason: S
input.voltage: 236.1
input.voltage.maximum: 236.1
input.voltage.minimum: 233.2
output.voltage: 236.1
output.voltage.nominal: 230
ups.delay.shutdown: 090
ups.delay.start: 000
ups.firmware: 601.3.I
ups.id: UPS_IDEN
ups.load: 004.5
ups.mfr: APC
ups.mfr.date: 09/06/05
ups.model: Smart-UPS 1500
ups.serial: AS0537230534(
ups.status: OL
ups.temperature: 031.0
ups.test.interval: 1209600
ups.test.result: NO

Are there some log files I should be looking at, or can I put the driver
in a debug mode somehow? I want to get this working before I rack the
server and forget about it, else if the power comes back at the wrong
time, I appreciate that the server won't!

As the only *nix server in the building that would be embarrasing for my
little *nix fanboy club :)

Thanks in advance,

--
Jon Povey, Design Engineer
jon.povey at racelogic.co.uk | +44(0)1280 825983 

 
Racelogic is a limited company registered in England. Registered number 2743719 . 
Registered Office Unit 10, Swan Business Centre, Osier Way, Buckingham, Bucks, MK18 1TB .
The information contained in this electronic mail transmission is intended by Racelogic Ltd for the use of the named individual or entity to which it is directed and may contain information that is confidential or privileged. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email so that the sender's address records can be corrected. The views expressed by the sender of this communication do not necessarily represent those of Racelogic Ltd. Please note that Racelogic reserves the right to monitor e-mail communications passing through its network



More information about the Nut-upsuser mailing list