Koozali.org: home of the SME Server

SME7 and UPS

Offline p-jones

  • *
  • 594
  • +0/-0
SME7 and UPS
« on: June 24, 2006, 12:18:51 AM »
I note that SM contains the NUT module for UPS features but I have been unable to locate almost nothing relevant to integrating with an V7 server.

Is anyone using this feature ? How has it been set up ? What UPS's does it work with (there seem to be a numberof different communication standards from the UPS data ports)

Rgds
Peter
...

Offline greg

  • ***
  • 51
  • +0/-0
SME7 and UPS
« Reply #1 on: June 24, 2006, 11:05:51 AM »
Hi,

Have you looked at this:
http://no.longer.valid/phpwiki/index.php/APC%20Smart%20UPS
and this
http://forums.contribs.org/index.php?topic=31268.0

I use SME7rc3 NUT and USB APC SmartUPS 1500i. Have worked so far.

Cheers

/G

Offline p-jones

  • *
  • 594
  • +0/-0
SME7 and UPS
« Reply #2 on: June 24, 2006, 11:22:16 AM »
Thanks Greg. I didnt find that howto when I searched. That gives me something to work with.
Cheers
Peter
...

Offline byte

  • *
  • 2,183
  • +2/-0
SME7 and UPS
« Reply #3 on: June 24, 2006, 04:23:59 PM »
I recently set one up with a APC SmartUPS 700 Serial connection, to setup just do the following...

enable first by typing...

Code: [Select]
db configuration setprop nut status enabled

Then select your UPS, here's a few...

       apcsmart        - APC SMartUPS and similar
       fentonups       - Fenton UPS
       optiups
       bestups
       genericups
       ups-trust425+625

Code: [Select]
db configuration setprop nut Model apcsmart

And if it's a serial (COM1) you need to add...

Code: [Select]
db configuration setprop nut Device /dev/ttyS0

Expand the templates...

Code: [Select]

expand-template /etc/sysconfig/ups
expand-template /etc/ups/ups.conf
expand-template /etc/ups/upssched.conf
expand-template /etc/ups/upsmon.conf
expand-template /etc/ups/upsd.users
expand-template /etc/ups/upsd.conf


Then once you have done that, just type...

Code: [Select]
/etc/rc7.d/S15nut restart

Type

upsc UPS@localhost

and all should be well[/code]
--[byte]--

Have you filled in a Bug Report over @ http://bugs.contribs.org ? Please don't wait to be told this way you help us to help you/others - Thanks!

Offline arnoldob

  • *
  • 183
  • +0/-0
SME7 and UPS
« Reply #4 on: July 11, 2006, 09:16:41 PM »
Just the thing I was looking for.  :-D
I just added a new drive to do soft RAID mirroring and had reinstall SME 7.0. I had forgotten how I did the nut setup before.

BTW the list of UPS models and the driver names can be found here:
http://www.networkupstools.org/compat/stable.html

Just replace apcsmart from your post with the nut driver name from the link.

Just thought I'd add that so next time I have to do it I'll know it's in the forum.
 :pint:

Thanks!
Tampa, FL USA

Offline stiperstones

  • *
  • 177
  • +0/-0
    • http://www.stiperstones.com
SME7 and UPS
« Reply #5 on: July 11, 2006, 09:22:20 PM »
Using nut on sme server and fedora core 5 for 625 belkin serial and 525 belkin serial
Works well on both machines
Stiperstones

http://wiki.contribs.org/Koozali_Foundation
Try the Wiki some great how's there

"My Licence".........

Don't report security issues here - Contact security at contribs dot org
Don't report problems here - Please report bugs @ http://bugs.contribs.org/
Don't ask the same question twice - Please search the forums, your question may have been asked before - Thank You.

steveo

Powerware 3105
« Reply #6 on: July 23, 2006, 08:57:07 AM »
For information - The above works for a Powerware 3105 on SME7.

Set the driver with
Code: [Select]
db configuration setprop nut Model bcmxcp_usb

And follow the instructiions above.

Many thanks for posting this information.

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
SME7 and UPS
« Reply #7 on: July 29, 2006, 10:00:07 PM »
There is something I don't understand about NUT and the UPS process. And I'm hoping you knowledgeable folk can elighten me.

In the normal course of events when a power failure occurs, (1) the UPS battery takes over, (2) when the battery gets low it signals NUT and NUT initiates a controlled shutdown, (3) the battery eventually goes flat, (4) the power gets restored and (5) because the server was set to boot on power restore, the SME Server boots.

In the case of a brief power flicker, we never get to step (2) and the server just continues to run.

My question has to do with the case where we complete step (2) and the server shuts down, but the grid power returns before step (3) completes. How does the server know to boot again?

Thanks for helping to clarify this for me.

John
...

skinny

SME7 and UPS
« Reply #8 on: July 30, 2006, 03:03:19 AM »
Hi John
an explanation of the shutdown process can be found here
http://www.networkupstools.org/doc/2.0.1/shutdown.html
or /usr/share/doc/nut-2.0.3/docs/shutdown.txt
read the section on Power Races

Offline wjhobbs

  • *****
  • 171
  • +0/-0
    • http://www.chryxus.ca
SME7 and UPS
« Reply #9 on: July 31, 2006, 12:28:01 AM »
Hi skinny,

Thanks for pointing me in the right direction.

That material looks really useful.

John
...