[Nut-upsuser] Powerware 5110

Kjell Claesson kjell.claesson at epost.tidanet.se
Sun Feb 4 17:51:29 CET 2007


OK Steve,

sön 2007-02-04 klockan 23:50 +1100 skrev Steve Simeonidis:
> This is the content of the file you are referring to
> 
> [root at b1 ups]# cat /etc/udev/rules.d/nut-usbups.rules
> # udev rules for the NUT USB drivers
> 
> SUBSYSTEM!="usb_device", ACTION!="add", GOTO="nut-usbups_rules_end"
> 
> # MGE UPS SYSTEMS - usbhid-ups
> SYSFS{idVendor}=="0463", SYSFS{idProduct}=="ffff", MODE="660", GROUP="nut"
> SYSFS{idVendor}=="0463", SYSFS{idProduct}=="0001", MODE="660", GROUP="nut"
> 
> # APC - usbhid-ups
> SYSFS{idVendor}=="051d", SYSFS{idProduct}=="0002", MODE="660", GROUP="nut"
> 
> # Powerware - bcmxcp_usb
> SYSFS{idVendor}=="0592", SYSFS{idProduct}=="0002", MODE="660", GROUP="nut"
> 
> # Tripp Lite - tripplite_usb
> SYSFS{idVendor}=="09ae", SYSFS{idProduct}=="0001", MODE="660", GROUP="nut"
> 
> LABEL="nut-usbups_rules_end"
> 

Yes this is the file. What is the version of your libusb ?
The new libusb-0.1.12 use the /dev so it should populate
the /dev/bus/usb/00x/00x and set the permissions by udev
by the means of this file.

So do as Charles say that you check the user and group nut is set to run
as. Some dists use 'nutuser' then you have to change the GROUP="nut" to
the right group for your dist.

This should be taken care of by the people that make up the rpm as the
rules in file take the configure setting --with-user to set this during
configuration of the build.

There have been some changes around the handling of the proc
file systems in the newer kernels so what is your kernel version ?

Kjell




> Thanks
> Steve 
> 
> -----Original Message-----
> From: Charles Lepple [mailto:clepple at gmail.com] 
> Sent: Sunday, 4 February 2007 11:41 PM
> To: Steve Simeonidis
> Cc: nut-upsuser
> Subject: Re: [Nut-upsuser] Powerware 5110
> 
> On 2/4/07, Steve Simeonidis <steves at awebd.com.au> wrote:
> > Thanks Charles/Kjell,
> >
> > I installed from the RPMS. If I use -u root seems to find the UPS. How do I make it work?
> 
> Check and see if the RPM has a hotplug-ng directory somewhere, or if it has a file named something like 'nut-usbups.rules'. That should go init /etc/udev/rules.d (probaby should be named '025_nut-usbups.rules').
> 
> If it wasn't included in the RPM, you can grab the source file here:
> 
> http://svn.debian.org/wsvn/nut/tags/v2.0.3/scripts/hotplug-ng/nut-usbups.rules.in?op=file&rev=0&sc=0
> 
> You will also need to find out what system user/group the driver is being run as. (This should be the 'user' column from 'ps auxww' if you don't run the driver with '-u root'.
> 
> For instance, if the RPMs use the 'nut' user (and there is a 'nut'
> group as well), run this command:
> 
> sed 's/@RUN_AS_USER@/nut/' < nut-usbups.rules.in > 025_nut-usbups.rules
> 
> And then put 025_nut-usbups.rules in /etc/udev/rules.d.
> 
> You will have to unplug and replug the USB cable once for the permissions to change.
> 
> --
> - Charles Lepple
> 
> --
> This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
> 
> 
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 1/02/2007 2:28 PM
>  
> 
> -- 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.17.19/663 - Release Date: 1/02/2007 2:28 PM
>  
> 




More information about the Nut-upsuser mailing list