[Nut-upsuser] APC RS-800 usb not shutdown

mailing - effem mailing at thecmanet.com
Wed Sep 24 06:53:39 UTC 2008


Hello world!
Please, help me :-)

I have a APC RS-800 usb and it don't shutdown.
I try every things but nothing: don't shutdown. Uhmmmm

My actual situation:

tux:/home/effem# uname -a
Linux tux 2.6.26-1-686 #1 SMP Wed Aug 20 12:56:41 UTC 2008 i686
GNU/Linux 

tux:/home/effem# wajig policy nut
nut:
  Installato: 2.2.2-6
  Candidato: 2.2.2-6
  Tabella versione:
     2.2.2-7 0
        -20 http://debian.fastweb.it unstable/main Packages
 *** 2.2.2-6 0
        -10 http://debian.fastweb.it testing/main Packages
        100 /var/lib/dpkg/status
     2.0.4-4 0
        990 http://debian.fastweb.it etch/main Packages


effem at tux:~$ lsusb   
[cut]
Bus 001 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro
500/1000/1500 Bus 001 Device 001: ID 1d6b:0001  

effem at tux:~$ ls -la /dev/bus/usb/001/
[cut]
crw-rw-r-- 1 root nut  189, 1 2008-09-24 08:41 002

Config files:

tux:/home/effem# cat /etc/nut/ups.conf
[APC-RS800]
  driver = usbhid-ups
  port = auto

tux:/home/effem# cat /etc/nut/upsd.users
[admin]
  password = password1
  allowfrom = localhost
  actions = SET
  instcmds = ALL

[nut]
password  = 1234
allowfrom = localhost
upsmon master

tux:/home/effem# cat /etc/nut/upsd.conf 
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32

ACCEPT localhost
REJECT all

tux:/home/effem# cat /etc/nut/upsmon.conf
RUN_AS_USER nut
MONITOR APC-RS800 at localhost 1 nut 1234 master
MINSUPPLIES 1
SHUTDOWNCMD "/sbin/shutdown -h +0"
POLLFREQ 5
POLLFREQALERT 5
HOSTSYNC 15
DEADTIME 15
POWERDOWNFLAG /etc/nut/killpower
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5

The problem:

tux:/home/effem# upsdrvctl start
Network UPS Tools - UPS driver controller 2.2.2
Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

Using subdriver: APC HID 0.92
Checking device (051D/0002) (001/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: American Power Conversion
- Product: Back-UPS BR  800 FW:9.o4 .I USB FW:o4 
- Serial Number: 3B0730X30508  
- Bus: 001
Trying to match device
Device matches

tux:/home/effem# upsd
Network UPS Tools upsd 2.2.2
listening on 0.0.0.0 port 3493
Connected to UPS [APC-RS800]: usbhid-ups-APC-RS800

tux:/home/effem# upsc APC-RS800
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2001/09/25
battery.mfr.date: 2007/07/26
battery.runtime: 6922
battery.runtime.low: 120
battery.temperature: 29.2
battery.type: PbAc
battery.voltage: 27.4
battery.voltage.nominal: 24.0
driver.name: usbhid-ups
driver.parameter.pollfreq: 30
driver.parameter.pollinterval: 2
driver.parameter.port: auto
driver.version: 2.2.2
driver.version.data: APC HID 0.92
driver.version.internal: 0.33
input.voltage: 228.0
input.voltage.nominal: 230
output.voltage: 230.0
output.voltage.nominal: 230.0
ups.beeper.status: enabled
ups.delay.shutdown: 20
ups.delay.start: 30
ups.firmware: 9.o4 .I
ups.firmware.aux: o4 
ups.load: 0.0
ups.mfr: American Power Conversion
ups.mfr.date: 2007/07/26
ups.model: Back-UPS BR  800
ups.productid: 0002
ups.serial: ***  
ups.status: OL
ups.test.result: No test initiated
ups.timer.reboot: 0
ups.timer.shutdown: -1
ups.vendorid: 051d

Ok, all ok
Now, for testing, ...stop all and execute

tux:/home/effem# /lib/nut/usbhid-ups -DD -k -a APC-RS800

Network UPS Tools: 0.29 USB communication driver - core 0.33 (2.2.2)

debug level is '2'
upsdrv_initups...
[cut]
Checking device (051D/0002) (001/002)
- VendorID: 051d
- ProductID: 0002
- Manufacturer: American Power Conversion
- Product: Back-UPS BR  800 FW:9.o4 .I USB FW:o4 
- Serial Number: 3B0730X30508  
- Bus: 001
Trying to match device
Device matches
HID descriptor length 1217
Report Descriptor size = 1217
Using subdriver: APC HID 0.92
[cut]
Initiating UPS shutdown
upsdrv_shutdown...
instcmd(shutdown.return, [NULL])
find_nut_info: unknown info type: shutdown.return

instcmd(load.on.delay, 30)
find_nut_info: unknown info type: load.on.delay

instcmd: info element unavailable load.on.delay

instcmd(shutdown.reboot, [NULL])
Can't set Report 19: Broken pipe
Shutdown failed!


Any help for me?
Thanks
effem





More information about the Nut-upsuser mailing list