Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: Teviot on January 18, 2007, 02:04:33 AM
-
Hi Guy's
I have just got a PMC BNT-1000AP Uninterruptible Power Supply found at this web address http://www.alphaenergy.com.au/index.php?sectionID=969&pageID=5556 and wish to connect it to SME v7.1. Not knowing how exsiting monitoring software build into SME works, I was hoping that someone could advise me on the best way to install this device to SME.
I am currently monitoring the UPS via serial cable to my windows machine.
Any and all help would be appreciated as I have no documentation or software disk with this device.
Adrian
-
The included Network UPS Tools (nut) is set for a USB UPS and disabled by default. You will need to set a couple of items before your UPS will work.
Try this:
# config setprop nut Device /dev/ttyS0 (or whatever your UPS is hooked to)
# config setprop nut Model powercom
# config setprop nut status enabled
# /etc/rc7.d/S15nut start
Note: Powercom also uses the Fenton driver on some models. If that is the case (and the powercom model does not work above) you can also try:
# config setprop nut Model fentonups
There are some outstanding bugs concerning nut in the bug tracker. If you have problems check these for possible help and before opening any new bugs.
http://bugs.contribs.org/show_bug.cgi?id=1614
http://bugs.contribs.org/show_bug.cgi?id=1768
http://bugs.contribs.org/show_bug.cgi?id=2268
-
pfloor
I tried what you suggested but din't have any success
[root@gateway ~]# config setprop nut Device /dev/ttyS0
[root@gateway ~]# config setprop nut Model powercom
[root@gateway ~]# config setprop nut status enabled
[root@gateway ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)
Network UPS Tools - UPS driver controller 2.0.4
No matching USB/HID UPS found
Driver failed to start (exit status=1)
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@gateway ~]#
Broadcast message from nut (Thu Jan 18 17:24:13 2007):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 18 17:24:18 2007):
UPS UPS@localhost is unavailable
[root@gateway ~]# config setprop nut Device /dev/ttyS0
[root@gateway ~]# config setprop nut Model fentonups
[root@gateway ~]# config setprop nut status enabled
[root@gateway ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)
Network UPS Tools - UPS driver controller 2.0.4
No matching USB/HID UPS found
Driver failed to start (exit status=1)
[FAILED]
Starting upsd: Network UPS Tools upsd 2.0.4
Can't bind TCP port number 3493: Address already in use
[FAILED]
Starting UPS monitor (master): [ OK ]
[root@gateway ~]#
Broadcast message from nut (Thu Jan 18 17:25:02 2007):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 18 17:25:07 2007):
UPS UPS@localhost is unavailable
I have done a little more digging and found drivers http://www.powercom-usa.com/download-center.asp
How would I go about installing one of them and which one??
I also did the following after a suggestion on one of the bugzilla url's
[root@gateway ~]# /etc/rc7.d/S15nut stop
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down upsdrvctl: Network UPS Tools - UPS driver controller 2.0.4
Stopping UPS: UPS
Can't open /var/run/nut/newhidups-hiddev0.pid: No such file or directory
[root@gateway ~]# config show nut
nut=service
Device=/dev/ttyS0
MasterPass=nm90EpktUYcc/A0VrzoCPceHhpDj6JWZJNEAkFHga9P1m+6rDN/mI4yUXOL4CuICMAD7KqAiYDsi
Model=powercom
SlavePass=1UnbLsFD3veUNult5FjjCf49B2cLmgILndtbUQ8Pw3klMwYF+/LaH3hiTb0g4dDUAGoeu1Whomzb
status=enabled
[root@gateway ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl: Network UPS Tools: New USB/HID UPS driver 0.28 (2.0.4)
Network UPS Tools - UPS driver controller 2.0.4
No matching USB/HID UPS found
Driver failed to start (exit status=1)
[FAILED]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@gateway ~]#
Broadcast message from nut (Thu Jan 18 17:44:21 2007):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 18 17:44:26 2007):
UPS UPS@localhost is unavailable
-
Template expansion.
expand-template /etc/ups/ups.conf
Edit: correct command error
-
[root@gateway ~]# config setprop nut Device /dev/ttyS0
[root@gateway ~]# config setprop nut Model powercom
[root@gateway ~]# config setprop nut status enabled
[root@gateway ~]# expand-template /etc/ups
ERROR: Could not expand //etc/ups template - it is a directory
at /sbin/e-smith/expand-template line 45
[root@gateway ~]#
I'm lost. Where do I go from here
-
expand-template /etc/ups/ups.conf
-
[root@gateway ~]# config setprop nut status enabled
[root@gateway ~]# config setprop nut Model powercom
[root@gateway ~]# config setprop nut Device /dev/ttyS0
[root@gateway ~]# expand-template /etc/ups/ups.conf
[root@gateway ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl: [ OK ]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@gateway ~]#
Broadcast message from nut (Thu Jan 18 20:06:37 2007):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 18 20:06:42 2007):
UPS UPS@localhost is unavailable
Is this the response I'm looking for???
Also, Is there a way of viewing what is happerning with the ups in something like sme7admin or similar?
-
ttyS0 is com port 1
ttys1 is com port 2
Try the other 'model' as advised above or check the nut site.
-
Where is ithe nut site?
-
http://www.networkupstools.org/
upsc myupsname@localhost
-
Template expansion.
expand-template /etc/ups/ups.conf
Edit: correct command error
Sorry, it was late last night. I forgot the template expansion. :(
-
[root@gateway ~]# config setprop nut status enabled
[root@gateway ~]# config setprop nut Model powercom
[root@gateway ~]# config setprop nut Device /dev/ttyS0
[root@gateway ~]# expand-template /etc/ups/ups.conf
[root@gateway ~]# /etc/rc7.d/S15nut start
Starting upsdrvctl: [ OK ]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@gateway ~]#
Broadcast message from nut (Thu Jan 18 20:06:37 2007):
Communications with UPS UPS@localhost lost
Broadcast message from nut (Thu Jan 18 20:06:42 2007):
UPS UPS@localhost is unavailable
Is this the response I'm looking for???
Also, Is there a way of viewing what is happerning with the ups in something like sme7admin or similar?
How did you go ?
I just tried with a ups I had here.
Had to update the nut templates. See bug 2286.
Also had to post-upgrade and reboot.
Also did a test power cycle.
[root@c3 ~]# more /etc/ups/ups.conf
#------------------------------------------------------------
# !!DO NOT MODIFY THIS FILE!!
#
# Manual changes will be lost when this file is regenerated.
#
# Please read the developer's guide, which is available
# at http://wiki.contribs.org/development/
#
# Copyright (C) 1999-2006 Mitel Networks Corporation
#------------------------------------------------------------
[UPS]
driver = genericups
upstype = 4
port = /dev/ttyS0
[root@c3 ~]# /etc/rc7.d/S15nut restart
Stopping UPS monitor: [ OK ]
Stopping upsd: [ OK ]
Shutting down upsdrvctl: Network UPS Tools - UPS driver controller 2.0.4
Stopping UPS: UPS
Starting upsdrvctl: [ OK ]
Starting upsd: [ OK ]
Starting UPS monitor (master): [ OK ]
[root@c3 ~]#
Broadcast message from nut (Sun Jan 21 18:07:06 2007):
UPS UPS@localhost on battery
[root@c3 ~]#
Broadcast message from nut (Sun Jan 21 18:08:51 2007):
UPS UPS@localhost on line power
[root@c3 ~]#
-
William
Haven't had a chance to have another look. work has me pretty busy at the moment. But will get on to i asap