From owner-freebsd-questions@FreeBSD.ORG Fri Feb 20 04:25:41 2015 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 9B135871 for ; Fri, 20 Feb 2015 04:25:41 +0000 (UTC) Received: from fly.hiwaay.net (fly.hiwaay.net [216.180.54.1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6533DB40 for ; Fri, 20 Feb 2015 04:25:40 +0000 (UTC) Received: from kabini1.local (rbn1-216-180-76-241.adsl.hiwaay.net [216.180.76.241]) (authenticated bits=0) by fly.hiwaay.net (8.13.8/8.13.8/fly) with ESMTP id t1K4PcRN017589 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 19 Feb 2015 22:25:39 -0600 Message-ID: <54E6B8B9.1060204@hiwaay.net> Date: Thu, 19 Feb 2015 22:31:53 -0600 From: "William A. Mahaffey III" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: What's the latest release from freebsd-update? References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Feb 2015 04:25:41 -0000 On 02/19/15 08:34, Dan Langille wrote: > I want to write a check to let us know if a given server is on the latest > version. > > For example, how can I determine that FreeBSD 9.3-RELEASE-p5 is the latest > and greatest? > > I could run freebsd-update and see what comes back, but that's not ideal > for a Nagios check. > > This output seems promising: > > $ sysctl kern.version > kern.version: FreeBSD 9.3-RELEASE-p5 #0: Mon Nov 3 22:38:58 UTC 2014 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC > > Let's assume we use that as the check for the host. > > What do we compare it to? Where can I find out that 9.3-RELEASE-p6 is > available? I'm running 9.3 (FreeBSD 9.3-RELEASE-p5) as well, & I have noticed posts going by onlist referencing 9.3-RELEASE-p9 (I think, might have been 8), although that is little help to you. You & I are several months back from today, probably safe to assume something newer is available. The bottom of https://www.freebsd.org/doc/handbook/updating-upgrading-freebsdupdate.html talks about comparing system versions. If you do a 'freebsd-update fetch' followed by a 'freebsd-update install' you will be updated to the latest & greatest patch level, but I'm not sure there is a way of checking that level apriori .... $0.02, no more, no less .... -- William A. Mahaffey III ---------------------------------------------------------------------- "The M1 Garand is without doubt the finest implement of war ever devised by man." -- Gen. George S. Patton Jr.