我无法nut通过 USB 连接在服务器上为 UPS Eaton 5E进行设置。我得到的所有结果是驱动程序没有运行并且 UPS 无法识别。什么样的驱动适合我,什么样的设置?单位是伊顿 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
Run Code Online (Sandbox Code Playgroud)
内容 /etc/nut/ups.conf
[Eaton5E]
driver = blazer_usb
port = auto
Run Code Online (Sandbox Code Playgroud)
结果$ 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)
Run Code Online (Sandbox Code Playgroud)
结果$ 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)
Run Code Online (Sandbox Code Playgroud)
更新: 我尝试连接桌面 linux Xubuntu 12.04,它通过 usbhid-ups 驱动程序检测到 UPS 和 UPS 供应商,但没有检测到任何电池状态并显示电池已放电(这不是真的,服务器正在运行几分钟没有问题)和现场技术未知。
尝试使用此博主的配置: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
Run Code Online (Sandbox Code Playgroud)
... 编辑 /etc/nut/ups.conf 并为 UPS 设备本身添加部分:
...
[myups]
driver = usbhid-ups
port = auto
vendorid = 0463
pollfreq = 30
Run Code Online (Sandbox Code Playgroud)
...
$ sudo upsdrvctl start
...
$ 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
Run Code Online (Sandbox Code Playgroud)
)
小智 1
一旦尝试这些事情,
您可以使用lsusb找出总线和设备号
然后更改设备的权限
chmod 0666 /dev/bus/usb/[bus number]/[device number]
Run Code Online (Sandbox Code Playgroud)
详细信息如下:使用伊顿 3S UPS 启动网络 UPS 工具时遇到问题
根据在 Ubuntu Linux 上为 Eaton 3S UPS 配置 NUT页面,您应该使用驱动程序 usbhid-ups 而不是 中的 blazer_usb /etc/nut/ups.conf。还要确保您已经MODE=standalone在/etc/nut/nut.conf.