From owner-freebsd-questions Sun Dec 23 13:42:38 2001 Delivered-To: freebsd-questions@freebsd.org Received: from openrelay.msu.edu (openrelay.msu.edu [35.9.98.20]) by hub.freebsd.org (Postfix) with ESMTP id E061837B41B for ; Sun, 23 Dec 2001 13:42:35 -0800 (PST) Received: from Megos ([65.194.248.251]) by openrelay.msu.edu (8.11.1/8.11.1) with ESMTP id fBNLTZu61259 for ; Sun, 23 Dec 2001 16:29:35 -0500 (EST) (envelope-from raiden23@netzero.net) Message-Id: <4.2.0.58.20011223163417.0097c610@pop.netzero.net> X-Sender: raiden23@pop.netzero.net (Unverified) X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.0.58 Date: Sun, 23 Dec 2001 16:44:57 -0500 To: freebsd-questions@FreeBSD.ORG From: Lord Raiden Subject: BSD emergency shutdown of all servers Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed 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 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. One use I can see for this is if severe weather was approaching and we suddenly got an evacuation warning (say a tornado was coming or something) then that 2 minute panic shutdown would be priceless. Now if the NOC got annihilated by a tornado that would be kinda a pointless exercise, but under other circumstances I can see where that would be a good thing. I'm also wanting this to be able to be done through an account other than ROOT. One that I can assign the option to only be able to execute 3 basic panic commands. One of them being the "shutdown -h now" command. The other two might be things like if we were being hacked I could fire that off to the server(s) in question and shut down all access to them till we could get rid of the hacker, or track him down and report him. Again, I know this is a lengthy question, but I wanted to be as clear as I could. Thanks in advance. I hope this gives you something to think about too. I'm also working on a solution for the NT/2k portion of our network. :) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message