From owner-freebsd-cluster@FreeBSD.ORG Wed Sep 24 00:04:57 2008 Return-Path: Delivered-To: freebsd-cluster@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B6A221065757 for ; Wed, 24 Sep 2008 00:04:55 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from smtp.ht-systems.ru (mr0.ht-systems.ru [78.110.50.55]) by mx1.freebsd.org (Postfix) with ESMTP id 197938FC1A for ; Wed, 24 Sep 2008 00:04:54 +0000 (UTC) (envelope-from stas@FreeBSD.org) Received: from [85.21.245.235] (helo=orion.SpringDaemons.com) by smtp.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1KiFva-00018u-AL; Wed, 24 Sep 2008 02:00:14 +0400 Received: from orion (localhost [127.0.0.1]) by orion.SpringDaemons.com (Postfix) with SMTP id 6432D3981D; Wed, 24 Sep 2008 02:00:22 +0400 (MSD) Date: Wed, 24 Sep 2008 02:00:13 +0400 From: Stanislav Sedov To: "Bob McClure" Message-Id: <20080924020013.8c1ac0ce.stas@FreeBSD.org> In-Reply-To: References: Organization: The FreeBSD Project X-XMPP: ssedov@jabber.ru X-Voice: +7 916 849 20 23 X-PGP-Fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Wed__24_Sep_2008_02_00_13_+0400_juRTz746TEeZi9mo" Cc: freebsd-cluster@freebsd.org Subject: Re: CARP Status X-BeenThere: freebsd-cluster@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Clustering FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Sep 2008 00:04:57 -0000 --Signature=_Wed__24_Sep_2008_02_00_13_+0400_juRTz746TEeZi9mo Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, 23 Sep 2008 14:31:21 -0500 "Bob McClure" mentioned: > I have several servers running CARP in an active/passive configuration. > Currently the only way that my scripts can determine if a given node is > master is by > periodically executing ifconfig carp1 and grepping for MASTER. Although t= his > works, > it's kind of clunky. >=20 > Is there a better way to detect the CARP status of a server? >=20 You can try to use net/ifstated for this task.=20 --=20 Stanislav Sedov ST4096-RIPE --Signature=_Wed__24_Sep_2008_02_00_13_+0400_juRTz746TEeZi9mo Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkjZZvYACgkQK/VZk+smlYE02wCdGuR7LQ1jIJoNl5BGlkZKo4vt imEAnj2oyFinU+FYIqBPolwRgkTfOlmO =Fcwp -----END PGP SIGNATURE----- --Signature=_Wed__24_Sep_2008_02_00_13_+0400_juRTz746TEeZi9mo--