DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2007-10-24 15:41:03

gareth
Member
Registered: 2007-06-28
Posts: 50

PowerChute Shutdown Utility

I've just acquired myself an APC SmartUPS with a network management card that supports remote network client shutdowns. I've got it rigged up to my 2 D-Links...

http://www.12elm.com/pics/rack.jpg

...and I'm investigating the remote client shutdown facility of the management card. There is a PowerChute Network shutdown utility that runs on Java from Linux but I have a feeling that this won't work, because a) it runs on java and b) will a standard Linux shutdown command work on the D-Link?

I was also wondering if there was a way to interpret the command sent by the APC unit to shutdown the box and get the DLink to respond to it?

Any ideas?
Gareth.

Offline

 

#2 2007-10-24 16:00:00

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: PowerChute Shutdown Utility

gareth wrote:

I was also wondering if there was a way to interpret the command sent by the APC unit to shutdown the box and get the DLink to respond to it?

This discussion from summer 2006 might be a starting point: http://www.nabble.com/APC-PowerChute-Ne … 77425.html
Looks like they integrated support into a software called 'apcupsd'.

Offline

 

#3 2007-10-24 18:19:47

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: PowerChute Shutdown Utility

I use 'apcupsd' http://www.apcupsd.org/ on four winXP systems and a Kurobox (Buffalo Tech's NAS, running Fedora Core 4).
The apcupsd software works very well.  All the APC UPS are connected to their systems via a USB cable. 

I have one pair of winXP systems both pluged into the same UPS, each running apcupsd,
but only one system monitoring the ups (master/slave configuration).  In the event of power failure,
the monitoring system will tell the other system (via ethernet) to shutdown.

If apcupsd was compiled to run on the DNS-323, it could be setup as a slave to monitored UPS, but
ideally I would like the DNS-323 to be able to monitor it's own UPS.  In order to connect a UPS to the
DNS-323 USB port there are some USB modules needed.  see: http://dns323.kood.org/forum/p2198-2007 … html#p2198

There is a thread http://dns323.kood.org/forum/t370-Shutt … ntrol.html
about remote shutdown for the DNS-323 that could be helpful to understand the DNS-323 shutdown procedure.


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#4 2007-10-25 13:33:31

skull29
New member
Registered: 2007-10-01
Posts: 3

Re: PowerChute Shutdown Utility

mig...thanks for giving all the references. I am a new owner of a DNS-323 and I would like to be able to hook it up directly to a UPS thru the USB port. As I am still very new in Linux, is there already a solution today that works? Could you provide details on how to do it? Thks.

Offline

 

#5 2007-10-25 16:10:32

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: PowerChute Shutdown Utility

A USB UPS needs all of these drivers - the USB device filesystem, the USB hub, the Human Interface Device subsystem driver, and the Human Interface Device driver. If you are compiling your own kernel, you want to enable

     CONFIG_USB
     CONFIG_USB_HID
     CONFIG_USB_HIDDEV
     CONFIG_USB_DEVICEFS

Because FW 1.03 does not have the required USB modules the DNS-323 can't communicate with a USB UPS.
These modules may be available if you are running a Debian installation (via chroot or native boot).
Perhaps someone running Debian on their DNS-323 could report if USB UPS communication is possible?

-- I think the lack of UPS support is one of the biggest short comings of the DNS-323, especially since the DNS-323
uses a non-journaling file system (ext2).

Last edited by mig (2007-10-25 16:15:42)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#6 2007-10-25 18:31:48

skull29
New member
Registered: 2007-10-01
Posts: 3

Re: PowerChute Shutdown Utility

mig wrote:

These modules may be available if you are running a Debian installation (via chroot or native boot).
Perhaps someone running Debian on their DNS-323 could report if USB UPS communication is possible?

So are we saying that using the fun_plug is not enough to control the UPS?

Offline

 

#7 2007-10-25 18:58:55

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: PowerChute Shutdown Utility

skull29 wrote:

So are we saying that using the fun_plug is not enough to control the UPS?

If you have to use USB, you need to compile a new kernel. But the discussion I linked to above indicates that at least some UPSs send notifications via the network.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB