[Nut-upsuser] APC Smart UPS at a Mac Mini
wolfgang at hottgenroth.net
Wed Aug 31 11:53:26 UTC 2011
Here are the information you asked for. Does it help anyhow?
keller:~ admin$ upsc ups
device.model: Smart-UPS SC450 RM
input.transfer.reason: unacceptable utility voltage rate of change
ups.model: Smart-UPS SC450 RM
keller:~ admin$ upscmd -l ups
Instant commands supported on UPS [ups]:
calibrate.start - Start run time calibration
calibrate.stop - Stop run time calibration
load.off - Turn off the load immediately
load.on - Turn on the load immediately
shutdown.return - Turn off the load and return when power is back
shutdown.return.grace - Description unavailable
shutdown.stayoff - Turn off the load and remain off
test.battery.start - Start a battery test
test.battery.stop - Stop the battery test
test.failure.start - Start a simulated power failure
test.panel.start - Start testing the UPS panel
keller:~ admin$ upsrw ups
Battery alarm threshold
Option: "0" SELECTED
Minimum battery level for restart after power off (percent)
Option: "00" SELECTED
Battery change date
Remaining battery runtime when UPS switches to LB (seconds)
Option: "120" SELECTED
Input power sensitivity
Option: "H" SELECTED
High voltage transfer point (V)
Option: "253" SELECTED
Low voltage transfer point (V)
Option: "208" SELECTED
Nominal output voltage (V)
Option: "230" SELECTED
Interval to wait after shutdown with delay command (seconds)
Option: "060" SELECTED
Interval to wait before (re)starting the load (seconds)
Option: "000" SELECTED
UPS system identifier
Interval between self tests (seconds)
Option: "1209600" SELECTED
Am 29.08.2011 um 14:57 schrieb Charles Lepple:
> On Mon, Aug 29, 2011 at 7:14 AM, Wolfgang Hottgenroth
> <wolfgang at hottgenroth.net> wrote:
>> I'm using a APC Smart UPS with a Mac Mini, connected using a USB serial converter.
>> Works fine so far, the Mac Mini will be shut down, a NAS connected of the network to the nut on Mac Mini will also shut down, perfect.
>> However, the ups will not be shut down. Very unfortunate, since the Mac will not start again, if the power comes back before the batteries are completely empty.
>> I read about /etc/killpower and a may be required modification of the shutdown script.
>> But there is no such script in Mac OS X Snow Leopard.
> I admit I haven't investigated the OS X shutdown sequence much - my
> main OS X box is a laptop, and the Mac Mini isn't doing anything
> I think that the built-in USB UPS support simply commands the UPS to
> shut down after a delay. I think there's a potential race condition
> there if the power comes back on as you described, but maybe the APC
> UPSes avoid that by power-cycling the load if they have already been
> commanded to shut down when the power returns.
> Can you post your shutdown command, and the output of "upsc", "upscmd
> -l" and "upsrw" for that UPS? No need to include ups.serial if you
> don't want to post the serial number - I'm mainly interested in the
> firmware version, NUT version, and what commands and variables are
> detected as supported by the apcsmart driver.
> Michal Soltys has made some improvements to the APC shutdown support
> recently, so he might be able to offer some suggestions about using
> the delayed shutdown feature with your hardware.
> - Charles Lepple
More information about the Nut-upsuser