[Nut-upsuser] Poweraware 5115, ttyS0, Ubuntu 6.06.1
Arjen de Korte
nut+users at de-korte.org
Fri Sep 21 11:21:57 UTC 2007
> Hi all,
>
> I know there are some howto's about Powerware 5115 and Ubuntu, but I can't
> still get that thing working.
>
> Can someone give some light...
>
> 1. Powerware 5115, serial port (ttyS0)
>
> 2. Ubuntu 6.06.1 as LTSP-server
>
> As reference:
>
> http://gentoo-wiki.com/HOWTO_NUT
> http://keystoneit.wordpress.com/2006/09/25/network-ups-tools-nut-on-ubuntu/
>
> ---
>
> a. I try to start driver as root.
>
> root at kirkonmaki:/home/juuri# upsdrvctl -u root start
You probably want to change this to
upsdrvctl -u nut start
> Network UPS Tools - UPS driver controller 2.0.3
> Network UPS Tools - BCMXCP UPS driver 0.10 (2.0.3)
>
> Communications with UPS lost: Error executing command
> Communications with UPS lost: Error executing command
> Communications with UPS lost: Error executing command
> Communications with UPS re-established
> Connected to UPS on /dev/ttyS0 baudrate: 9600
> Model = PW5115 750i 750VA
> Firmware = 01.00
> Shutdown delay = 120 seconds
>
> b. I try to start upsd as root.
>
> root at kirkonmaki:/home/juuri# upsd
This will start the server with whatever user was compiled in. If you
really want to start the server as root, you need to specify that on the
commandline:
upsd -u root
> Network UPS Tools upsd 2.0.3
> /etc/nut/upsd.conf is world readable
That is bad. Fix it.
> Can't connect to UPS [powerware] (bcmxcp-ttyS0): Permission denied
> /etc/nut/upsd.users is world readable
> Synchronizing........ giving up
> root at kirkonmaki:/home/juuri#
>
> c. I got user monuser in group dialout (ttyS0)
>
> root at kirkonmaki:/home/juuri# ls -al /dev/ttyS0
> crw-rw---- 1 root dialout 4, 64 2007-09-21 10:43 /dev/ttyS0
> root at kirkonmaki:/home/juuri#
>
> root at kirkonmaki:/home/juuri# cat /etc/group | grep nut
> nut:x:115:monuser
> root at kirkonmaki:/home/juuri#
>
> root at kirkonmaki:/home/juuri# cat /etc/group | grep dialout
> dialout:x:20:[removed],monuser
> root at kirkonmaki:/home/juuri#
>
> ---
>
> Conf-files for nut.
>
> a. ups.conf
>
> [powerware]
> driver = bcmxcp
> port = /dev/ttyS0
>
> b. upsd.conf
>
> ACL all 0.0.0.0/0
> ACL localhost 127.0.0.1/32
>
> ACCEPT localhost
> REJECT all
>
> c. upsd.users
>
> [monuser]
> password = usermon
> allowfrom = localhost
> upsmon master
>
> d. upsmon.conf
>
> [clip]
> MONITOR powerware at localhost 1 monuser usermon master
> SHUTDOWNCMD "/sbin/shutdown -h +0"
> [more clip]
>
> Best regards Asmo Koskinen.
Best regards, Arjen
--
Eindhoven - The Netherlands
Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
More information about the Nut-upsuser
mailing list