[Nut-upsuser] Poweraware 5115, ttyS0, Ubuntu 6.06.1

asmo.koskinen at arkki.info
Fri, 21 Sep 2007 08:28:21 -0000

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
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
Network UPS Tools upsd 2.0.3
/etc/nut/upsd.conf is world readable
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.