[Nut-upsuser] Eaton Powerware 5110 - some stats not reported
daehenoc at iinet.net.au
Sat Feb 15 05:22:22 UTC 2014
On 13/02/14 12:16, Charles Lepple wrote:
> On Feb 12, 2014, at 7:50 PM, Tim Dawson wrote:
>> Run the driver with -DDDDD and see what variables it picks up. I have noted that with the Prestige 9 in bcmxcp, some variables are not consistent within models, and had to do some gentle remapping to get things to work correctly.
I ran the new driver (see below) and with -DDDD it throws out tons of
never ending information, what am I looking for? :)
> Tim, is this the issue you mentioned on 2014-02-02 with blocks 0x9 and 0x13? I'll reply to that email.
>> On 02/12/2014 06:46 PM, Greg Vickers wrote:
>>> Hi all,
>>> I've hooked up an Eaton Powerware 5110 to Ubuntu 13.10 server, and
>>> configured nut appropriately. The cgi scripts are working fine, but on
>>> upsstats.cgi, the Batter, UPS Temp and Battery Runtime fields are all
>>> blank - and there are no entries for these values in the 'All data' tree.
> From http://packages.ubuntu.com/saucy/nut-server it looks like you have 2.6.4. There was a big rewrite of the bcmxcp driver core which became part of 2.7.1.
> It might be possible to drop in the bcmxcp driver binary from Ubuntu trusty - I wouldn't force-install the whole package, just in case they changed things regarding init scripts and other libraries, but the drivers should be pretty self-contained. Or you could build just that driver from source, making sure to use the same paths as Ubuntu uses to build their binaries. Let me know if you're interested in trying one of those routes (admittedly, it makes for a bit of a Frankenstein system) and I can explain in more detail.
Charles, thanks very much for the information :) I've parachuted in the
bcmxcp_usb binary from Ubuntu Trusty from nut-server
by using dpkg-deb to pull it out of the .deb file:
$ ls -l /lib/nut/bcmxcp*
-rwxr-xr-x 1 root root 75880 May 20 2013 /lib/nut/bcmxcp
-rwxr-xr-x 1 root root 80544 Feb 15 09:03 /lib/nut/bcmxcp_usb
-rwxr-xr-x 1 root root 71816 Feb 15 09:03 /lib/nut/bcmxcp_usb.2.6.4
-rwxr-xr-x 1 root root 80544 Feb 15 09:02 /lib/nut/bcmxcp_usb.2.7.1
And stopped both nut-client and nut-server, then started them both up.
There is no change to what is displayed in the cgi, the same fields are
still missing :(
On 13/02/14 15:55, Alf Høgemark wrote:
> you can see what is reported. The unreleased part refers to v2.7.1, which is now released.
OK, from that table, should the nut cgi be showing the Battery, UPS Temp
and Battery Runtime values? Sorry, I don't know how these values are
translated into what is shown in the cgi displays.
I've got nut running, and can use upsc to get the values directly:
$ ps aux | grep nut
nut 18306 1.3 0.0 2640 636 ? Ss 15:14 0:00
/lib/nut/bcmxcp_usb -a Powerware5110
nut 18308 0.0 0.0 2620 708 ? Ss 15:14 0:00 /sbin/upsd
nut 18326 0.0 0.0 2592 764 ? S 15:14 0:00
$ sudo upsc Powerware5110
device.model: POWERWARE UPS 700i
ups.description: Line-Interactive UPS, Single Phase
ups.firmware: Cont:00.50 Inve:01.50
ups.model: POWERWARE UPS 700i
ups.test.result: Done and passed
Happy to do more checks, I see the firmware on my 5110 700VA has the
same values as the 5110 500VA on the wiki, but there are a few fields
different, I guess there is a difference between the wiki page and the
driver in Ubuntu Trusty.
More information about the Nut-upsuser