Koozali.org: home of the SME Server

USB APC --- APCUPSD setup

Texasboy

USB APC --- APCUPSD setup
« on: January 29, 2005, 04:54:30 AM »
I have loaded apcupsd on my 6.5 beta server and I can't get it to recognize the right usb port. I can see and configure the APC in the server-manager and then I login as root and execute apcupsd I get the error "Cannot open UPS **** No such file or directory". I can see the APC under proc/bus/usb and I can "dmesg" and see it as hiddev0 and that it is on usb1. Anybody have any suggestions???

Thanks

Texasboy

P.S. I did try setting the device to hiddev [0-15] per apcupsd's web sit manual

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: USB APC --- APCUPSD setup
« Reply #1 on: January 29, 2005, 08:57:05 PM »
Quote from: "Texasboy"
I have loaded apcupsd on my 6.5 beta server ...


You didn't need to do that. nutUPS is already installed, and already supports USB APC UPSs. All you need to do is enable it.

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

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Re: USB APC --- APCUPSD setup
« Reply #2 on: April 14, 2005, 02:11:41 AM »
Quote from: "CharlieBrady"
Quote from: "Texasboy"
I have loaded apcupsd on my 6.5 beta server ...


You didn't need to do that. nutUPS is already installed, and already supports USB APC UPSs. All you need to do is enable it.

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


I just did exactly that , but where do you configure it? I just did a man nut and it says there are no man pages.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: USB APC --- APCUPSD setup
« Reply #3 on: April 14, 2005, 02:38:04 AM »
Quote from: "dilligaf"

... but where do you configure it?


You don't. It should "just work". And if it doesn't, it won't - you'll need a newer version of nutUPS, or a different program.

Quote

I just did a man nut and it says there are no man pages.


http://www.networkupstools.org/

Offline dilligaf

  • *
  • 266
  • +0/-0
    • http://www.willcraft.com
Re: USB APC --- APCUPSD setup
« Reply #4 on: April 14, 2005, 05:05:26 AM »
Quote from: "CharlieBrady"
Quote from: "dilligaf"

... but where do you configure it?


You don't. It should "just work". And if it doesn't, it won't - you'll need a newer version of nutUPS, or a different program.

Quote

I just did a man nut and it says there are no man pages.


http://www.networkupstools.org/


Thanks Charlie,
I have the nut-1.2.0-1ES3 and a apc ups bk350
When you say you don't configure it, it should just work,
What do you do to test, just unplug the UPS?
Is there a log file that shows if it is detected?
Thanks

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
USB APC --- APCUPSD setup
« Reply #5 on: April 18, 2005, 08:15:04 PM »
I have a 1500VA UPS and a UPS master (CentOS4) that is connected to multiple networked clients (among others SME servers). Does the pre-installed NUT support being a networked client?

mbachmann

USB APC --- APCUPSD setup
« Reply #6 on: April 26, 2005, 12:10:50 PM »
In the way that the UPS powered network client sends a reboot signal to the other servers if power fails, without the UPS being connected to every network client?

jamesli

USB APC --- APCUPSD setup
« Reply #7 on: April 26, 2005, 10:48:31 PM »
DMay's apcupsd only support serial port ups, the built-in NUT did work with USB APC UPS. It will detect the UPS and there will be some entries in the log to show it. To test it throughly, you can put your SME to the wall power instead of the UPS, plug the UPS usb in the server, disconnect the UPS from wall power, and run out of the battery of the UPS by using a 100watt lightbulb or something like that. When the power on the UPS nearly run out, it will sent a signal to the SME to shut it down.

Offline psoren

  • *
  • 371
  • +0/-0
Re: USB APC --- APCUPSD setup
« Reply #8 on: April 26, 2005, 11:58:45 PM »
To see the current status of your UPS, you can go to the command line and type "upsc UPS@localhost" It will then give something like this:

UPS: UPS@localhost
MFR: Generic
MODEL: Back-UPS CS 500 FW:808.q5.I USB
SERIAL: BB0435018598
STATUS: OL
BATTVOLT: 13.5
BATTPCT: 100
RUNTIME: 1972
LOADPCT: 210

Per

policymap

Re: USB APC --- APCUPSD setup
« Reply #9 on: July 07, 2005, 12:32:04 AM »
Knuddi, did you find any soloution on having sme's as networked clients?

VJ

Offline Knuddi

  • *
  • 540
  • +0/-0
    • http://www.scanmailx.com
USB APC --- APCUPSD setup
« Reply #10 on: July 08, 2005, 11:04:42 PM »
Actually I downloaded  the apcupsd RPM f or Redhat 7. 3 and used that. This works for me .

/Jesper

policymap

USB APC --- APCUPSD setup
« Reply #11 on: July 09, 2005, 12:45:49 AM »
thanks Knuddi, I will give this a try too :-)

VJ

johnjdoe

USB APC --- APCUPSD setup
« Reply #12 on: November 30, 2005, 02:51:12 PM »
Hi,

I have an APC UPS connected by serial port and then executed:


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

as described above.

After a reboot, I typed "upsc UPS@localhost" to see the configuration. It appeared "UPS UPS@localhost is unavailable" and since there this appears allways on the console.

Could you please tell me if I did a mistake, if the connection to the UPS works fine (if not, how I could make it work) and how I could disable this message?

Thank you in advance for each help!

Offline raem

  • *
  • 3,972
  • +4/-0
USB APC --- APCUPSD setup
« Reply #13 on: December 01, 2005, 12:20:34 AM »
johnjdoe & others

> I have an APC UPS connected by serial port...

As you have a serial port APC UPS, then you could use the dmay apcupsd contrib. It adds a nice server manager panel to configure it.

As an additional answer to earlier questions:

You can also run the Windows version of apcupsd on networked Windows boxes, to have a master slave arrangement ie the sme server is master which  directly connects to and controls/is controlled by the UPS via serial cable.
Other Windows boxes running off the same UPS supply are configured as slaves. In the event that power fails and the UPS eventually sends a shutdown signal to the sme apcupsd Master, then all Windows boxes will be signalled via the network cable to shutdown automatically as well.

You should read the APC documentation carefully and slowly if you want to configure your network this way, but it is all straightforward to configure.

I don't know if NUT has this master slave capability.
...

johnjdoe

USB APC --- APCUPSD setup
« Reply #14 on: December 02, 2005, 11:19:05 AM »
Quote from: "RayMitchell"

As you have a serial port APC UPS, then you could use the dmay apcupsd contrib. It adds a nice server manager panel to configure it.


Thank you, I'll test this contrib.

But could somebody tell how to disable/stop the other thing that I enabled with

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

and what's allways creating the broadcast on the console?

Thank you!