Citeren Thomas Gutzler <[email protected]>:

They're also on the same bus ('Bus 003 Device 063' and 'Bus 003 Device
064')
Since there is no flag for manufacturer,
There is. See 'man 8 usbhid-ups' for all regular expressions that you
can use to identify units.
I did that, but all I could find was vendor, product, serial, vendorid,
productid and bus. I was assuming that those correspond to idVendor (the
string), iProduct, iSerial, idVendor (the hex number), idProduct and Bus
in lsusb -v.

Ah, now I understand the confusion. There actually is no idVendor (string) field in USB. There is iManufacturer which is used by the 'vendor' regular expression.

[...]

On a slightly related note.
Is it possible to configure two different SHUTDOWNCMDs for two different
UPSs?

Could you explain why you think you need this? The SHUTDOWNCMD is used to bring down the host 'upsmon' is running on. It makes no sense to make this different depening on which UPS is critical. The host should either be shutdown or not (depending on whether or not the total powervalue available is enough).

I have the feeling that you're trying to abuse this command to do something that really should be done through 'upssched' instead. Please explain in detail what you are trying to do.

Best regards, Arjen
--
Please keep list traffic on the list


_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser

Reply via email to