Re: [Apcupsd-users] Continual stream of battattach, battdetach, changeme and powerout events from B
Brought to you by:
adk0212
|
From: Andy S. <an...@st...> - 2024-02-21 23:28:29
|
Hi Sarunas, On Wed, Feb 21, 2024 at 05:16:38PM -0500, Sarunas Burdulis wrote: > The worst case would be finding the right settings in apcupsd.conf > and/or the right cable. I started with: UPSCABLE usb UPSTYPE usb DEVICE which works but with the spurious events. In desperation I've been trying other UPSCABLE settings and most recently tried UPSCABLE 940-0127A which actually gave me a glimmer of hope as nothing unusual showed for an hour or so after restarting apcupsd. But when I came back later it had seen plenty. I shall try some others but it seems like there's a limited number of cable types that actually are USB on the computer end so not many to try. It would be nice to know what model number of cable comes with the UPS but this is not printed on the cable nor in any of the documentation I can find. As for DEVICE, plugging in the USB cable doesn't result in the creation of a ttyUSB* so I think I always need to leave that blank. When I plug it in, these are the logs: 2024-02-21T04:17:48.656215+00:00 specialbrew kernel: [1172892.452906] usb 4-5: new low-speed USB device number 13 using ohci-pci 2024-02-21T04:17:48.860353+00:00 specialbrew kernel: [1172892.659935] usb 4-5: New USB device found, idVendor=051d, idProduct=0002, bcdDevice= 0.01 2024-02-21T04:17:48.860405+00:00 specialbrew kernel: [1172892.659945] usb 4-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3 2024-02-21T04:17:48.860411+00:00 specialbrew kernel: [1172892.659949] usb 4-5: Product: Back-UPS BX1600MI 2024-02-21T04:17:48.860418+00:00 specialbrew kernel: [1172892.659953] usb 4-5: Manufacturer: American Power Conversion 2024-02-21T04:17:48.860422+00:00 specialbrew kernel: [1172892.659956] usb 4-5: SerialNumber: 9B2339A15993 2024-02-21T04:17:48.904082+00:00 specialbrew kernel: [1172892.700945] hid-generic 0003:051D:0002.000C: hiddev0,hidraw0: USB HID v1.10 Device [American Power Conversion Back-UPS BX1600MI] on usb-0000:00:12.0-5/input0 > (If there is a way to get a better model ID without crawling > behind server racks to peek at the back of the unit, please let me > know). As above for USB models it may be in the kernel logs when a USB cable is inserted. You can remotely trigger the equivalent of an unplug and replug with something like: # echo 0 > /sys/bus/usb/devices/4-5/authorized # echo 1 > /sys/bus/usb/devices/4-5/authorized though no warranties from me. :) Also, if it would have been logged on USB cable insertion then I would also expect the same info to be somewhere in the output of "lsusb -v". Thanks, Andy |