[Nut-upsuser] Poweroff USP on upsmon FSD

Weber, Achim (DWIE Extern) Achim.Weber.extern at smithsdetection.com
Thu Sep 6 14:15:45 BST 2018


Hi!

I'm trying to setup a small mobile server rack with key switch to power
on/off the whole system.

Used USP is an APC Smart-UPS 1500 SMT1500RMI2U with extra AP9613 IO
card [1] to get the key switch "connected" to the UPS. The IO card has
several inputs which can trigger actions like power on and "gracefully"
shutdown.

On key switch OFF this SMT ups model changes ups state from "OL" to
"ALARM OL LB".

With a upssched config entry "AT LOWBATT * EXECUTE ups-shutdown" I can
trigger a system shutdown (internally call 'upsmon -c fsd'). But my
problem here is the ups "reboot" when main power is available,
described in [2].

I have a second ups for testing: Smart-UPS 750 SUA750RMI1U.
When I do a key switch OFF on this ups the ups state changes from "OL"
to "OB LB" which is the "critical situation" and upsmon is doing a
shutdown by itself and additionally power off ups. No need to tinker
with upssched config "AT LOWBAT".
Probably APC "fixed" something in the newer SMT model firmware. The SUA
model has our desired behavioural pattern but we have to use the SMT
ups :-/

So I have to get the SMT ups to power down/off somehow.

Is it possible to do/configure an ups shutdown also when main power is
active (e.g. ups state is still OL instead of OB)?

Attached are debug logs from usbhid-ups. One file with key switch off
and one file with manual 'upsmon -c fsd'.

Below are my setup informations.

Do you need something else/more?


Best regards

Achim Weber


[1] http://www2.schneider-electric.com/resources/sites/SCHNEIDER_ELECTR
IC/content/live/FAQS/171000/FA171399/zh_CN/PMAR-8XZJ9Y_R1_EN.pdf

[2] Section 'Unattended shutdowns':
 https://networkupstools.org/docs/man/usbhid-ups.html



#####################################################

OS: Centos 7.5
NUT version:nut 2.7.2 installed by Centos package
PC + ups are Connected by USB cable.


APC Smart-UPS 1500 SMT1500RMI2U:
# upsc shups | sort
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.runtime: 7440
battery.runtime.low: 120
battery.type: PbAc
battery.voltage: 27.3
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS 1500
device.serial: AS1819142087
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.data: APC HID 0.95
driver.version.internal: 0.38
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: UPS 09.3 / ID=18
ups.mfr: American Power Conversion
ups.mfr.date: 2018/05/09
ups.model: Smart-UPS 1500
ups.productid: 0003
ups.serial: AS1819142087
ups.status: OL
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.vendorid: 051d

# lsusb -d 051d:0003 -v
Bus 001 Device 008: ID 051d:0003 American Power Conversion UPS
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 (Defined at Interface level)
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x051d American Power Conversion
  idProduct          0x0003 UPS
  bcdDevice            1.06
  iManufacturer           1 American Power Conversion
  iProduct                2 Smart-UPS 1500 FW:UPS 09.3 / ID=18
  iSerial                 3 AS1819142087
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           41
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xe0
      Self Powered
      Remote Wakeup
    MaxPower                2mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      0 No Subclass
      bInterfaceProtocol      0 None
      iInterface              0
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.00
          bCountryCode           33 US
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength     515
         Report Descriptors:
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              20
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x01  EP 1 OUT
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval              10
Device Status:     0x0002
  (Bus Powered)
  Remote Wakeup Enabled


#######################################################
# Just for reference:
#######################################################
Smart-UPS 750 SUA750RMI1U:
# upsc shups | sort
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.mfr.date: 2018/02/03
battery.runtime: 18240
battery.runtime.low: 120
battery.temperature: 27.9
battery.type: PbAc
battery.voltage: 27.5
battery.voltage.nominal: 24.0
device.mfr: American Power Conversion
device.model: Smart-UPS 750 RM
device.serial: AS1806150190
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.7.2
driver.version.data: APC HID 0.95
driver.version.internal: 0.38
input.sensitivity: high
input.transfer.high: 253
input.transfer.low: 208
input.voltage: 220.3
output.frequency: 50.0
output.voltage: 220.3
output.voltage.nominal: 230.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 615.3.I
ups.firmware.aux: 8.1
ups.load: 0.0
ups.mfr: American Power Conversion
ups.mfr.date: 2018/02/03
ups.model: Smart-UPS 750 RM
ups.productid: 0002
ups.serial: AS1806150190
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: -1
ups.timer.shutdown: -1
ups.timer.start: -1
ups.vendorid: 051d
PROPRIETARY: This e-mail contains proprietary information some or all of which may be legally privileged. It is intended for the recipient only. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail. If you are not the intended recipient you must not use, disclose, distribute, copy, print, or rely on this e-mail.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: debug_SMT.tar.gz
Type: application/x-compressed-tar
Size: 8219 bytes
Desc: debug_SMT.tar.gz
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20180906/0637a60d/attachment.bin>


More information about the Nut-upsuser mailing list