From owner-freebsd-questions Wed Dec 26 4:56:15 2001 Delivered-To: freebsd-questions@freebsd.org Received: from empty1.ekahuna.com (empty1.ekahuna.com [198.144.200.196]) by hub.freebsd.org (Postfix) with ESMTP id CDC7D37B41B for ; Wed, 26 Dec 2001 04:56:11 -0800 (PST) Received: from pc-02 (pc02.ekahuna.com [198.144.200.197]) by empty1.ekahuna.com (Post.Office MTA v3.5.3 release 223 ID# 0-0U10L2S100V35) with ESMTP id com; Wed, 26 Dec 2001 04:56:05 -0800 From: "Philip J. Koenig" Organization: The Electric Kahuna Organization To: questions@FreeBSD.ORG Date: Wed, 26 Dec 2001 04:56:05 -0800 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: BSD emergency shutdown of all servers Reply-To: pjklist@ekahuna.com Cc: Lord Raiden Message-ID: <3C295865.8802.1BA6ECC@localhost> In-reply-to: X-mailer: Pegasus Mail for Win32 (v3.12c) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > Date: Sun, 23 Dec 2001 16:44:57 -0500 > From: Lord Raiden > > How would you go about doing an emergency shutdown of all of your BSD > servers say if something were happening that all of your servers HAD to be > shut down in 2 minutes or less regardless. SSH'ing to all the boxes at the > same time would be kinda impossible in that limited time. I'm more looking > at the old "Panic Button" idea. > > The idea came to me today and I thought it would be very useful. I don't > see a need for it right in the foreseeable future, but then again, I didn't > see the need for a UPS either until one of my boxes got whacked by a power > surge. So as a little preventative forethought, I want something that can > remotely shut down all of our BSD servers within a 2 minute window so that > we can go power off at exactly 2 minutes and put the whole NOC dark within > 120 seconds of the "Panic Alert" so to speak. Plus being able to execute > all of this from a basic script would be great too. Kinda a single option > to execute thing. The less things I have to do in that 2 minute panic > window, the better. Since you say you now grasp the value of a UPS and have presumably now equipped your FreeBSD boxes with them, and since typical UPS signaling daemons have as their primary function the ability to gracefully shutdown hosts in a short period of time while unattended, why don't you just invoke the equivalent of a power-fail event and let the UPS daemon do the rest? All this talk about writing SSH scripts that pretend to be interactive users, along with the management issue of embedding passwords or fooling around with convoluted sudo stuff sounds like a lot more of a hassle and potentially less reliable way to go about it, to me. Phil -- Philip J. Koenig pjklist@ekahuna.com Electric Kahuna Systems -- Computers & Communications for the New Millenium To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message