我无法nut
在服务器上设置带有 USB 连接的 UPS Eaton 5E。我得到的所有结果是驱动程序未运行,UPS 未被识别。哪种驱动程序适合我,哪种设置?设备是 Eaton 5E。
的结果$ lsusb -v
Bus 004 Device 007: ID 0463:ffff MGE UPS Systems UPS
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.10
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 8
idVendor 0x0463 MGE UPS Systems
idProduct 0xffff UPS
bcdDevice 0.01
iManufacturer 1
iProduct 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 34
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0xa0
(Bus Powered)
Remote Wakeup
MaxPower 20mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Device
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 0 None
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.10
bCountryCode 33 US
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 549
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0008 1x 8 bytes
bInterval 20
Device Status: 0x0001
Self Powered
内容/etc/nut/ups.conf
[Eaton5E]
driver = blazer_usb
port = auto
$ upsdrvctl start
驱动程序的结果usbhid-ups
:
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
No matching HID UPS found
Driver failed to start (exit status=1)
$ upsdrvctl start
驱动程序的结果blazer_usb
:
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Megatec/Q1 protocol USB driver 0.03 (2.4.3)
No supported devices found. Please check your device availability with 'lsusb'
and make sure you have an up-to-date version of NUT. If this does not help,
try running the driver with at least 'subdriver', 'vendorid' and 'productid'
options specified. Please refer to the man page for details about these options
(man 8 blazer).
Driver failed to start (exit status=1)
更新: 我尝试连接桌面 Linux Xubuntu 12.04,它通过 usbhid-ups 驱动程序检测 UPS 和 UPS 供应商,但未检测到任何电池状态并显示电池已放电(事实并非如此,服务器在其上运行了几分钟而没有任何故障)并且现场技术为未知。
答案1
尝试使用这位博主的配置: http://risc-a-day.blogspot.hu/2014/09/getting-my-ups-to-work-with-linux.html
(摘录:
lsusb
...
Bus 008 Device 002: ID 0463:ffff MGE UPS Systems UPS
... 编辑 /etc/nut/ups.conf 并添加 UPS 设备本身的部分:
...
[myups]
driver = usbhid-ups
port = auto
vendorid = 0463
pollfreq = 30
...
$ sudo upsdrvctl 启动
...
$ upsc myups
battery.charge: 75
battery.runtime: 1737
battery.type: PbAc
device.mfr: EATON
device.model: 5E 1100i
device.type: ups
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.parameter.vendorid: 0463
driver.version: 2.6.4
driver.version.data: MGE HID 1.31
driver.version.internal: 0.37
input.voltage: 229.0
outlet.1.status: on
outlet.desc: Main Outlet
outlet.id: 1
outlet.switchable: no
output.frequency: 49.9
output.frequency.nominal: 50
output.voltage: 233.0
output.voltage.nominal: 230
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.firmware: 01.04.0018
ups.load: 12
ups.mfr: EATON
ups.model: 5E 1100i
ups.power.nominal: 1100
ups.productid: ffff
ups.start.battery: yes
ups.status: OL CHRG
ups.timer.shutdown: -1
ups.vendorid: 0463
)
答案2
一旦尝试这些事情,
您可以使用系统盘找出总线和设备号
然后更改设备的权限
chmod 0666 /dev/bus/usb/[bus number]/[device number]
答案3
根据页面在 Ubuntu Linux 上为 Eaton 3S UPS 配置 NUT您应该使用 usbhid-ups 驱动程序,而不是 blazer_usb /etc/nut/ups.conf
。另外请确保您MODE=standalone
有/etc/nut/nut.conf
。
答案4
检查电缆可能也是值得的。两台 Eaton 5E 设备也出现了同样的问题,通过更换较短的 USB 电缆解决了该问题。此外,usbhid-ups
该驱动程序也适用于 Eaton 5E。