NUT: Communications with UPS lost: COMMAND: 31

Jan Dušátko jan at dusatko.org
Sun Mar 27 17:52:53 CEST 2011


Ahoj
Resil jsem pripojeni UPS pomoci NUT (vyjimecne nemam k dispozici APC)
a dostal jsem se do nasledujici situace:

# setenv USB_DEBUG 3 && /usr/local/libexec/nut/bcmxcp_usb -DDD -a pw5115
Network UPS Tools - BCMXCP UPS driver 0.21 (2.4.1)
USB communication subdriver 0.17
debug level is '3'
Communications with UPS lost: Receive error (Request command): COMMAND: 31

RECONNECT USB DEVICE

Communications with UPS lost: Receive error (Request command): COMMAND: 31

RECONNECT USB DEVICE

Communications with UPS lost: Receive error (Request command): COMMAND: 31

RECONNECT USB DEVICE

Communications with UPS lost: Receive error (Request command): COMMAND: 31

RECONNECT USB DEVICE

Communications with UPS lost: Receive error (Request command): COMMAND: 31

RECONNECT USB DEVICE

Communications with UPS lost: Error executing command
Could not communicate with the ups: Device not configured
CLOSING

# cat /usr/local/etc/nut/ups.conf
 [pw5115]
     driver = bcmxcp_usb
     port = auto
     desc = "PowerWare 5115 UPS"
#    user = nut

Pritom dle http://www.networkupstools.org/stable-hcl.html je muj model UPS
podporovan (jedna se o PowerWare PW5115)

Pouzivam FreeBSD 8.2-STABLE a nut-2.4.1_6

Na FreeBSD 8.x je nutne udelat drobny workaround, tykajici se USB portu:
`/usr/sbin/usbconfig | /usr/bin/grep -i powerware \
| /usr/bin/awk '{print $1}' | /usr/bin/tr "ugen:" " " \
| /usr/bin/awk '{ print "/usr/sbin/chown uucp:uucp /dev/usb/"$1 \
".? && /bin/chmod 770 /dev/usb/"$1".?" }'`

Tento workaround spoustim v /etc/rc.local a ma za ukol zjistit port ke
kteremu
je pripojena UPS a nastavit vlastnika uucp:uucp s opravnenimi rwxrwx

Diky za nakopnuti

Honza



More information about the Users-l mailing list