From owner-freebsd-questions@FreeBSD.ORG Sun Apr 6 23:54:09 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 687B81065671 for ; Sun, 6 Apr 2008 23:54:09 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.180]) by mx1.freebsd.org (Postfix) with ESMTP id 231628FC17 for ; Sun, 6 Apr 2008 23:54:09 +0000 (UTC) (envelope-from kelly.terry.jones@gmail.com) Received: by py-out-1112.google.com with SMTP id u52so1881349pyb.10 for ; Sun, 06 Apr 2008 16:54:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=8PgWZkCI/OGPvIS5WSpfExEoyHOaXT3asOQgIYNggL4=; b=VO7SZXCkgy7nNXxUMTCGUEqr7jLiNqISSov00WSP2Z0KGoR0NRj2v/oUJ01UxwTsc/LjPQLYsgzbguIcWCdhIF4+uOG1JorpgOIQQfHu6pXqyKmQQ4Zoix9yrBNK6p8puJnb89M4Ayqc5AGaXM4eddr9hp5fiwmjg/eahcIvjbE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=QMjzWoyhQxR/iCHZqB8hy/sLTPvAJ2PzwDqwodcPqDE7fmu/y2V3NycUDInQsOzCUHBx5UQYJXH9wB2MIZC/CgY28D2QobrH4h0VbL6aiIkK5pboSffKNdLkfnpzBWYe3U4v6B/cSiiJxnsxclNbvXp7+f1zcsdY8h8J23nn8m8= Received: by 10.35.77.18 with SMTP id e18mr7427890pyl.46.1207524363882; Sun, 06 Apr 2008 16:26:03 -0700 (PDT) Received: by 10.35.84.5 with HTTP; Sun, 6 Apr 2008 16:26:03 -0700 (PDT) Message-ID: <26face530804061626m3e22d6c9jab5e0b6739e591f6@mail.gmail.com> Date: Sun, 6 Apr 2008 16:26:03 -0700 From: "Kelly Jones" To: freebsd-questions@freebsd.org, nmlug@nmlug.org, nmosug-l@mailman.swcp.com MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: Subject: Snapshotting a system before fixing it X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2008 23:54:09 -0000 When a critical service on a system goes down, fixing it is top priority. Unfortunately, this makes doing a post-mortem analysis more difficult-- after you've fixed the problem, doing "ps", "mailq", or whatever isn't that helpful. Question: has anyone written a script that quickly snapshots (saves to a file) the "important" values of a system? You could then quickly run "snapshot.pl" before fixing the system, and examine the output of snapshot.pl later at your leisure. If I wrote something like this, it would dump the output of "ps -aux -www", "mailq -v" (maybe), and a few other commands to /tmp/snapshot.`date` or something. Has this wheel already been invented? -- We're just a Bunch Of Regular Guys, a collective group that's trying to understand and assimilate technology. We feel that resistance to new ideas and technology is unwise and ultimately futile.