[Nut-upsuser] Powerware 5110

Steve Simeonidis steves at awebd.com.au
Sun Feb 4 13:50:18 CET 2007


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"

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
 

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the Nut-upsuser mailing list