Koozali.org: home of the SME Server

USB APC --- APCUPSD setup

Offline raem

  • *
  • 3,972
  • +4/-0
USB APC --- APCUPSD setup
« Reply #15 on: December 03, 2005, 07:08:44 PM »
johnjdoe

> But could somebody tell how to disable....

I would have thought that was obvious.....

/sbin/e-smith/config setprop nut status disabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot
...

johnjdoe

USB APC --- APCUPSD setup
« Reply #16 on: December 05, 2005, 09:44:51 AM »
Quote from: "RayMitchell"
johnjdoe

> But could somebody tell how to disable....

I would have thought that was obvious.....

/sbin/e-smith/config setprop nut status disabled
/sbin/e-smith/signal-event post-upgrade
/sbin/e-smith/signal-event reboot


Thanks, RayMitchell!

Offline f2racer

  • 9
  • +0/-0
    • http://www.tedshouse.com
USB APC --- APCUPSD setup
« Reply #17 on: February 06, 2006, 05:16:22 PM »
Anybody have a USB UPS that disappears?  I bought an APC ES500VA a couple of months ago and I've noticed that after 20+ days or so, my SME server looses it's connection to the UPS (which is connected through the USB port) and the box gracefully shuts down.  Whey I restart the SME server, it doesn't "see" the UPS unless I disconnect/reconnect the cable going into the UPS prior to startup.  Does anybody have similar problems?  Is this a problem with the UPS or cable?

Thanks!

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
USB APC --- APCUPSD setup
« Reply #18 on: July 18, 2006, 09:03:26 PM »
Now I am back with the same request for SME7 - I need a networked system for my UPS. I have a master which has the physical connection to the UPS (RS-232) and slaves connected via Ethernet. All are naturally powered through the UPS.

I cannot see that NUT can do this job and for SME6 I used the apcupsd with great success. I started downloading the apcupsd package for RHEL4 and found out that SME7 doesn't come wiith the gd package......

Any good suggestions?

Offline mdo

  • *
  • 355
  • +0/-0
USB APC --- APCUPSD setup
« Reply #19 on: July 19, 2006, 06:58:52 AM »
Quote
I cannot see that NUT can do this job


Jesper,
I think Nut can do this. I have tested the following scenario:

Nut on SME7, monitoring a UPS via serial cable. I then installed "WinNUT" on another (Windows XP) machine and WinNUT is talking to NUT on SME nicely via LAN. I believe what WinNUT is doing should also be working with another NUT installation (on Linux, Unix, etc.).

We used APCupsd previously on all SME installations and found it excellent - but unfortunately it limits us to use APC upses only and NUT is much wider to be used with different UPS brands. So far, NUT seems to do it's monitoring job OK and has done already controlled shutdowns which is its main task from my point of view. There is (by default) no such nice status monitoring via web access as APCupsd provided.
Michael
...

Offline raem

  • *
  • 3,972
  • +4/-0
USB APC --- APCUPSD setup
« Reply #20 on: July 19, 2006, 10:11:10 AM »
mdo

Thanks, didn't know there was WinNUT

see
http://csociety.ecn.purdue.edu/~delpha/winnut/

and for general details on NUT
see
http://www.networkupstools.org/features/
...

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
USB APC --- APCUPSD setup
« Reply #21 on: September 06, 2006, 12:29:58 AM »
APC Support is superb. I told them I was running Linux and that the box did not have USB. They sent me out a serial lead free of charge !!!

Top service !
"If you don't know what you want, you end up with a lot you don't."

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
USB APC --- APCUPSD setup
« Reply #22 on: September 06, 2006, 12:33:48 AM »
I have 2 x SME 7.0 + servers. 1 has UPS serial lead. I need it to tell the other when to shutdown. Can NUT do this and if so how ? Many Thanks.
"If you don't know what you want, you end up with a lot you don't."

Offline lightman

  • ***
  • 75
  • +0/-0
USB APC --- APCUPSD setup
« Reply #23 on: October 19, 2006, 06:27:18 PM »
Hi

I just saw this thread, I need to buy a cheap UPS and I found the APC BK500ei which is cheap enough, however it has USB interface, however they said that is SERIAL/USB interface but couldn't find anything about the serial side.

anyone know this?, does it really has, at least simple signalling on it?

After reading this thread I'm afraid about the problems of the nut with the USB based UPS's but i have no choice since the only UPS that I can find serial are the SMART ones that cost a fortune!.

I was so happy with powstatd and simple signalling UPS :(

is there is some solution, very simple, like powstatd for USB UPS's that really works good?.

that thing about disconnecting after 20 days is so typical of the USB, maybe manufacturers are pushing the USB too much, and it's still in it's infancy (IMHO).

thanks
lightman

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
USB APC --- APCUPSD setup
« Reply #24 on: February 05, 2007, 11:58:11 AM »
Just to confirm today (05/02/07 UK) I setup an APC 350 BackUPS CS

(It didnt cost a fortune :)

The serial cable that APC sent out (free) is marked up 940-0128A
The closest driver match was genericups=12

[http://www.networkupstools.org/compat/stable.html]

This is what I did (as per other posts)


config setprop nut Device /dev/ttyS0
config setprop nut Model genericups
config setprop nut status enabled
genericups -x upstype=12 /dev/ttyS0

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

config show nut
svc -t /var/service/nut restart

upsc UPS@localhost

outputs :-

driver.name: genericups
driver.parameter.upstype: 12
driver.version: 2.0.4
driver.version.internal: 1.32
ups.mfr: APC
ups.model: Back-UPS Office
ups.status: OL

LOL - Does Status OL mean OFF Line or ON Line ?
"If you don't know what you want, you end up with a lot you don't."

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
USB APC --- APCUPSD setup
« Reply #25 on: February 05, 2007, 01:46:13 PM »
Quote from: "gbentley"

genericups -x upstype=12 /dev/ttyS0

Interesting.

Quote from: "gbentley"

ups.status: OL

LOL - Does Status OL mean OFF Line or ON Line ?


For me, genericups type 4 OL means On Line.

Have you rebooted since you set it up. Interesting to see if type 12 remains after you do.
Some info.
Regards,
William

IF I give advise.. It's only if it was me....

Offline psoren

  • *
  • 371
  • +0/-0
USB APC --- APCUPSD setup
« Reply #26 on: February 05, 2007, 01:47:26 PM »
Quote from: "gbentley"


LOL - Does Status OL mean OFF Line or ON Line ?


Yes that means online.
But i have a Back-UPS CS 500 and that gives me a lot more output. As far as i remeber i only enabled Nut. My cable is also a USB.
Here is my output:

[root@perserver ~]# upsc UPS@localhost
battery.charge: 100
battery.charge.low: 10
battery.charge.warning: 50
battery.date: 2004/08/25
battery.mfr.date: 2004/08/25
battery.runtime: 1852
battery.runtime.low: 120
battery.temperature: 28
battery.type: PbAc
battery.voltage: 13.5
battery.voltage.nominal: 12.0
driver.name: newhidups
driver.parameter.port: /var/lib/ups/hiddev0
driver.version: 2.0.4
driver.version.data: APC/CyberPower HID 0.9
driver.version.internal: 0.28
input.voltage: 228.0
input.voltage.nominal: 230
output.voltage: 230.0
output.voltage.target.line: 230.0
ups.beeper.status: enabled
ups.delay.shutdown: -1
ups.firmware: 808.q5.I
ups.firmware.aux: q5
ups.load: 19.0
ups.mfr: American Power Conversion
ups.mfr.date: 2004/08/25
ups.model: Back-UPS CS 500
ups.serial: BB0435018598
ups.status: OL
ups.test.result: No test initiated

Per

Offline gbentley

  • ****
  • 482
  • +0/-0
  • Forum Lurker
    • Earth
USB APC --- APCUPSD setup
« Reply #27 on: February 05, 2007, 04:08:28 PM »
Will,

This is what I did ;

mkdir /etc/e-smith/templates-custom/etc/ups
mkdir /etc/e-smith/templates-custom/etc/ups/ups.conf
touch /etc/e-smith/templates-custom/etc/ups/ups.conf/upstype
vi /etc/e-smith/templates-custom/etc/ups/ups.conf/upstype

--- edit ---

{
my $upstype = 12;
$OUT .= "\tupstype = $upstype\n";
}

--- save quit---

expand-template /etc/ups/ups.conf
cat /etc/ups/ups.conf

[UPS]
        driver = genericups
        port = /dev/ttyS0

        upstype = 12


[Not sure where the extra blank line comes from?]

Anyway, then I rebooted and tested with ;

upsc UPS@localhost

and was greeted with ;

driver.name: genericups
driver.parameter.port: /dev/ttyS0
driver.parameter.upstype: 12
driver.version: 2.0.4
driver.version.internal: 1.32
ups.mfr: APC
ups.model: Back-UPS Office
ups.status: OL


Hope I did ok ?
"If you don't know what you want, you end up with a lot you don't."

Offline ntblade

  • *
  • 252
  • +0/-0
USB APC --- APCUPSD setup
« Reply #28 on: March 13, 2007, 08:57:06 PM »
Hi,

What is the recommended / easiest software to install to work with an APC Smart-UPS and where do I find it?

The one I have has both USB and serial connectors, it's recognised when connected via USB :) :
Code: [Select]
# lsusb
Bus 005 Device 002: ID 051d:0002 American Power Conversion Back-UPS Pro 500/1000/1500

Thanks

N

Offline raem

  • *
  • 3,972
  • +4/-0
USB APC --- APCUPSD setup
« Reply #29 on: March 15, 2007, 03:58:48 AM »
ntblade

Search forums on NUT, it's already installed
...