From owner-freebsd-questions Wed Jan 7 04:52:11 1998 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id EAA22991 for questions-outgoing; Wed, 7 Jan 1998 04:52:11 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from j51.com (root@gorplex.j51.com [199.224.7.51]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id EAA22982 for ; Wed, 7 Jan 1998 04:52:05 -0800 (PST) (envelope-from yubyub@j51.com) Received: from tcpc54.tcam.com ([198.115.45.103]) by j51.com (8.8.5/8.8.5) with SMTP id HAA12844 for ; Wed, 7 Jan 1998 07:49:30 -0500 (EST) Received: by tcpc54.tcam.com with Microsoft Mail id <01BD1B41.1214A910@tcpc54.tcam.com>; Wed, 7 Jan 1998 07:51:32 -0500 Message-ID: <01BD1B41.1214A910@tcpc54.tcam.com> From: Yubyub Bird To: "'freebsd-questions@freebsd.org'" Subject: RE: Remote power cycle Date: Wed, 7 Jan 1998 07:51:31 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id EAA22983 Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > I want to remotely power cycle machines at our colocation because > they tend to hang on reboots because of zombies or just hang. > I don't want to use a phone line to connect to a device which can > power cycle machines. I would prefer to telnet into either a FreeBSD > box which does nothing or the power cycling device if that is > possible. Here's another hardware approach. I know you said you didn't want a box, but I figured I'd throw in my two cents anyway. I have constructed such a device from a small processor and a few relays/transistors. I used a Basic stamp for the brains of the unit (it's self contained, already contains serial I/O, and can handle a wide enough variety of tasks for this application). Basically, it's rigged so that I can reset or power cycle any of my boxes from my master (fatal flaw: what if the master dies???). I suppose it could be easily extended to provide access from any of the boxes. Anyway, just gather the reset pins from each box, gate it via a trans, and you're all set. I used the power relays to cutoff the actual power to each machine. The house line was connected to the NC contacts on the relays (so that if the device lost power, my machines didn't necessarialy). It seems to work for now... I suppose it would be possible to write a few utils (or even expect scripts) to control the thing, but for now it has a simple prompt interface.