[Nut-upsuser] Where is nut-scanner on raspberry pi?

Charles Lepple clepple at gmail.com
Thu Aug 11 14:22:15 BST 2022


> On Aug 11, 2022, at 8:03 AM, z.kevino--- via Nut-upsuser wrote:
> 
> So even with Buster I get the same results - no nut-scanner. I was under the impression that it was needed to get the serial # of an APC device. I have two of the same type of devices (APC UPS) and the vendor code and product code are the same for them, so I didn’t know how to distinguish one from the other in the config files.
> 
The serial number is shown in dmesg:

[    7.337934] usb 6-2: New USB device found, idVendor=051d, idProduct=0003
[    7.337935] usb 6-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.337936] usb 6-2: Product: Smart-UPS C 1000 FW:UPS 10.0 / ID=1005
[    7.337937] usb 6-2: Manufacturer: American Power Conversion 
[    7.337938] usb 6-2: SerialNumber: 3S1746X05384  

or you can retrieve it with lsusb:

$ sudo lsusb -d 51d: -v | grep -2 iSerial
  iManufacturer           1 American Power Conversion 
  iProduct                2 Smart-UPS C 1000 FW:UPS 10.0 / ID=1005
  iSerial                 3 3S1746X05384  
  bNumConfigurations      1
  Configuration Descriptor:

(examples from Ubuntu; formatting may vary slightly. the "lsusb -d 51d:" flag filters for APC's vendor ID.)

# ups.conf
[apc]
        driver = usbhid-ups
        port = auto
        serial = "3S1746X05384"
        desc = "Basement"

-- 
Charles Lepple
clepple at gmail





More information about the Nut-upsuser mailing list