Home
Home
Our House The Gallery We live here Our family tree Shingle Street
Our Place The Gallery We Live Here Genealogy Stuff Holiday Destinations
Best viewed at 1280x1024 pixels
In this release
15/09/2010
New in this release
Christmas Newsletters
Links and Resources
Technical Home
Louise's Cross-country
Trust PW-4105 UPS
Internet Domains

In Association with Amazon.co.uk

TRUST PW-4105 UPS 1000 MANAGEMENT

History - one stormy night ...

After losing the power to our house, usually due to bad weather, a few times a year, and more frequently due to eccentric farm wiring, we decided that we needed some protection for the Computer Room. Liz was using her PC for her Law Course, and Tony ran the File / Web Server, and we were starting to get paranoid about losing a lot of work and data that we couldn't replace. We bought a Belkin UPS from PC World, which worked really well (albeit the battery run time was a little on the short time for two PCs).

Unfortunately just after the warranty ran out, there was a bit of a storm, and the UPS bit the dust. It probably shouldn't have happened, but it did.

We needed a new UPS in a hurry, and after a bit of Googling, found out about the TRUST PW-4105 UPS 1000 MANAGEMENT. It seemed to fit our requirements. It had:
Trust PW-4105 UPS
  • Phone line protection.
  • Four protected outputs.
  • A reasonable battery capacity.
  • Serial port comms to control the UPS and alert the Server to power outages.
I can't honestly remember whether I checked whether it could be managed under Linux before I bought it, but I probably did. I run Mandriva 2006 [Update: Now running 2007] on the Server, and I usually check for direct support or a work-around before I source new hardware.

The Trust UPS in question is currently available from Amazon for less than £100.00 . If you want to buy one, please use the Amazon link on this page, as we will get a small contribution towards running the Website - Thanks!

How to manage the PW-4105 UPS manufactured by Trust on Mandriva 2006/2007

The first thing to do is make sure that you have the 'nut', 'nut-client' and 'nut-server' packages. These are part of the distribution from Mandriva.

Install the packages using your preferred method :
  • Command-line: 'rpm', 'urpmi'.
  • GUI: rpmdrake.
There are a few config files to set up, and these are located in /etc/ups. The files that you will need to configure are:
  • ups.conf
  • upsd.users
  • upsmon.conf
  • upsd.conf

ups.conf

Add something along the lines of:
[myups]
    driver = mustek
    port = /dev/ttyS0

upsd.users

Add something along the lines of:
[admin]
        password = <password>
        allowfrom = localhost
        actions = SET
        instcmds = ALL

upsmon.conf

Add something along the lines of:
MONITOR myups@localhost 1 admin <password> master

upsd.conf

My ACL list is something like:
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL localnet 10.0.0.0/24
ACCEPT localhost localnet
REJECT all

Usage

All other variables in the config files are left at default values, and the overall installation has been tested to the point of battery exhaustion and controlled server shutdown, on several occasions.
Hopefully only local users will now have access. Change the IPs to reflect your LAN configuration. There should be two start-up scripts to run from /etc/rc.d/init.d, namely upsd and upsmon. If you've installed nut-client you can monitor the UPS.

How to manage networked Windows computers with WinNUT

At the moment we have an ageing but useful Windows 98 PC in the 'Computer Room', which is on our LAN. There are NUT clients which will allow it to shut itself down if the power gets tripped. If you want to do this, get WinNUT and install it. The NUT Website has all the links that you need. There is certainly an XP version available from there, and  I have the version that runs on Windows 98.

NB. 2008/01/03 - The last time that the power went off and the UPS kicked in, we were out and the power was off for a long time. The Windows 98 machine failed to shut down cleanly when the UPS ran out of battery power. It was configured to force the shutdown, but it still failed to do so. I have no idea why, but it had succeeded previously.

More info

If you find any mistakes or would like more information about this hardware, please feel free to email us.
Go to the top of this page
Google
Search WWW Search www.thesticks.org

You may contact us at Email Address

There have been 1514 hits on this page This page was last modified: January 08 2008 11:53:07.
Website Design, Support and Hosting by "Moorlands Hosting"