[Nut-upsuser] Misconfiguration of Windows MSI installer 2.6.0-1 with my Powerware 5115 connected via USB port
Frédéric Bohé
fredericbohe at eaton.com
Thu Jun 9 08:40:17 UTC 2011
Please keep the list in copy, this could be interesting for other users.
On Wed, 2011-06-08 at 18:01 +0300, Павел Гуменюк wrote:
> OS version is Windows XP SP3 32-bit.
> There wasn't any driver installed in my Device Drivers Panel, so I
> follow you tips and install it.
> Here is my cmd output:
>
> C:\Program Files\NUT\bin>bcmxcp_usb.exe -a PW5115 -D
> Network UPS Tools - BCMXCP UPS driver 0.23 (2.6.0-2988:2989M)
> USB communication subdriver 0.18
> 0.000000 debug level is '1'
> 0.015625 device \\.\libusb0-0001--0x06da-0x0002 opened
> successfully
> 0.015625 Can't claim POWERWARE USB interface: libusb0-dll:err
> [claim_inte
> rface] could not claim interface 0, invalid configuration 0
>
It's a bug ! I will send you privately a new binary for bcmxcp_usb.exe.
Can you try it and report if it fixes the bug please ?
> Unable to find POWERWARE UPS device on USB bus (USB)
>
> Things to try:
>
> - Connect UPS device to USB bus
>
> - Run this driver as another user (upsdrvctl -u or 'user=...' in
> ups.conf).
> See upsdrvctl(8) and ups.conf(5).
>
> 0.031250 Fatal error: unusable configuration
>
> C:\Program Files\NUT\sbin>upsd.exe
> Network UPS Tools upsd.exe 2.6.0-2988:2989M
> listening on 192.168.100.170 port 3493
> ^C
> C:\Program Files\NUT\sbin>upsmon.exe
> Network UPS Tools upsmon 2.6.0-2988:2989M
> UPS: PW5115 at 192.168.100.170 (master) (power value 1)
> Using power down flag file /etc/killpower
> ^C
>
> Could you tell me what I need to do with SHUTDOWNCMD variable ?
If you want your system to be really shutdown when upsmon criteria are
completed (e.g. low battery level), you have to use the following
command (which can be found in etc/upsmon.conf.sample):
SHUTDOWNCMD "C:\\WINDOWS\\system32\\shutdown.exe -s -t 0"
You should also change POWERDOWNFLAG :
POWERDOWNFLAG "C:\\killpower"
> Thank you for answers.
>
> 2011/6/8 Frédéric Bohé <fredericbohe at eaton.com>
>
> On Wed, 2011-06-08 at 10:24 +0300, Павел Гуменюк wrote:
> > Hello.
> > I've tried to configure Windows (complete port, Beta):
> Windows MSI
> > installer 2.6.0-1 with my Powerware 5115 connected via USB
> port but
> > have no luck.
> > Here is my config files:
> >
> > nut.conf:
> > MODE = netserver
> >
> > ups.conf:
> > [PW5115]
> > driver = bcmxcp_usb
> > port = notUsed
> > desc = "PowerWare 5115"
> >
> >
> > upsd.conf:
> > LISTEN 192.168.1.12 3493
> >
> >
> > upsd.users:
> > [monuser]
> > password = xxxxxxxx
> > upsmon master
> >
> >
> > upsmon.conf:
> >
> > MONITOR PW5115 at 192.168.1.12 1 monuser xxxxxxxx master
> >
> > MINSUPPLIES 1
> > SHUTDOWNCMD "/sbin/shutdown -h +0"
> > NOTIFYCMD /sbin/upssched
> > POLLFREQ 5
> > POLLFREQALERT 5
> > HOSTSYNC 15
> > DEADTIME 15
> > POWERDOWNFLAG /etc/killpower
> > NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
> > NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
> > NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC
> > RBWARNTIME 43200
> > NOCOMMWARNTIME 300
> > FINALDELAY 5
> >
> >
> > upssched.conf:
> > CMDSCRIPT /bin/upssched-cmd
> > AT ONBATT * START-TIMER onbattwarn 10
> > AT ONLINE * CANCEL-TIMER onbattwarn
> > AT LOWBATT * EXECUTE lowbattwarn
> > AT ONBATT * START-TIMER timeshutdown 100
> > AT ONLINE * CANCEL-TIMER timeshutdown
> >
> >
> > There are huge count of windows events such as "upsmon -
> Poll UPS
> > [PW5115 at 192.168.1.12] failed - Data stale."
> > Can anyone help me to get right configs?
>
>
> Hello Pavel,
>
> I don't see any obvious issue in your configuration (although
> you might
> consider adapting the SHUTDOWNCMD variable in upsmon.conf for
> Windows).
>
> My first question is : what is your Windows version, and is it
> a 32 bits
> or 64 bits system ?
>
> Then, from what I understand, you might have an issue with the
> libUSB
> driver. Can you make sure you see an entry in the "Device
> Manager"
> called "libusb-win32 devices". Under this entry you should
> have a "NUT
> USB driver" sub entry.
>
> If there is no such entry, please make sure your UPS is
> connected to
> your host and run "C:\Program Files\NUT\others
> \wdi-simple.exe". there
> should be a console windows saying it is installing a driver.
>
> If you see the libusb entry in the "Device Manager", we need
> more input.
> Please stop NUT from the "Start" menu, then in consoles
> windows, run:
> C:\Program Files\NUT\bin\bcmxcp_usb.exe -a PW5115 -D
> C:\Program Files\NUT\sbin\upsd.exe
> C:\Program Files\NUT\sbin\upsmon.exe
>
> And sent us the resulting logs !
>
> Fred
>
> > Thanks
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> >
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
>
> --
> Team Open Source Eaton - http://powerquality.eaton.com
>
> --------------------------------------------------------------------------
>
--
Team Open Source Eaton - http://powerquality.eaton.com
--------------------------------------------------------------------------
More information about the Nut-upsuser
mailing list