From owner-freebsd-arch@FreeBSD.ORG Sat Apr 7 15:32:41 2007 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6ED7E16A400; Sat, 7 Apr 2007 15:32:41 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from mta-2.ms.rz.rwth-aachen.de (mta-2.ms.rz.RWTH-Aachen.DE [134.130.7.73]) by mx1.freebsd.org (Postfix) with ESMTP id 2368B13C455; Sat, 7 Apr 2007 15:32:40 +0000 (UTC) (envelope-from chris@hitnet.RWTH-Aachen.DE) Received: from circe ([134.130.3.36]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JG400ME5VTC5Y00@mta-2.ms.rz.RWTH-Aachen.de>; Sat, 07 Apr 2007 17:17:36 +0200 (CEST) Received: from talos.rz.RWTH-Aachen.DE ([134.130.3.22]) by circe (MailMonitor for SMTP v1.2.2 ) ; Sat, 07 Apr 2007 17:17:36 +0200 (MEST) Received: from bigboss.hitnet.rwth-aachen.de (bigspace.hitnet.RWTH-Aachen.DE [137.226.181.2]) by smarthost.rwth-aachen.de (8.13.8/8.13.1/1) with ESMTP id l37FHZR4028359; Sat, 07 Apr 2007 17:17:35 +0200 Received: from haakonia.hitnet.rwth-aachen.de ([137.226.181.92]) by bigboss.hitnet.rwth-aachen.de with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.50) id 1HaCfZ-0003bs-Di; Sat, 07 Apr 2007 17:17:37 +0200 Received: by haakonia.hitnet.rwth-aachen.de (Postfix, from userid 1001) id 86DC73F41E; Sat, 07 Apr 2007 17:17:35 +0200 (CEST) Date: Sat, 07 Apr 2007 17:17:35 +0200 From: Christian Brueffer In-reply-to: To: Andrew Pantyukhin Message-id: <20070407151735.GB1994@haakonia.hitnet.RWTH-Aachen.DE> MIME-version: 1.0 Content-type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary=9zSXsLTf0vkW971A Content-disposition: inline X-Operating-System: FreeBSD 6.2-STABLE X-PGP-Key: http://people.FreeBSD.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <20070407120656.GD63916@garage.freebsd.pl> <20070407145154.GG63916@garage.freebsd.pl> User-Agent: Mutt/1.5.11 Cc: Pawel Jakub Dawidek , freebsd-arch@freebsd.org Subject: Re: Host ID. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Apr 2007 15:32:41 -0000 --9zSXsLTf0vkW971A Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 07, 2007 at 07:08:18PM +0400, Andrew Pantyukhin wrote: > On 4/7/07, Pawel Jakub Dawidek wrote: > >On Sat, Apr 07, 2007 at 05:07:25PM +0400, Andrew Pantyukhin wrote: > >> - Is Windows-style hardware ID's hashing totally ruled out? > > > >I know nothing about it... >=20 > Well, maybe something like hashing MAC of the first NIC > to get the initial ID... But then there's always the > probability that we initialize several systems putting > the same NIC into each of them... >=20 > >> - How does it work in other OS'es? (e.g. solaris /bin/hostid) > > > >On OpenSolaris, if I understand the code right, hostid is derived from > >hw_serial, and hw_serial is taken from: > > > > * On sparc machines, read hw_serial from the firmware at boot time > > * and simply assert Sun is the hardware provider. Hmm. > >[...] > > * On x86 machines, read hw_serial, hw_provider and srpc_domain from > > * /etc/bootrc at boot time. >=20 > There's even a business [1] selling software to change > Solaris hostid for =A349. Should I squat freebsdhostid.com? :) >=20 > [1] http://www.solarishostid.com/ >=20 > Anyway, other systems also have a notion of hostid. It > appears from this linux manpage that hostid was there > in 4.2BSD, but got removed in 4.4BSD: >=20 > http://www.die.net/doc/linux/man/man2/gethostid.2.html Indeed, our gethostid(4) manpage says the same ;-) - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --9zSXsLTf0vkW971A Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFGF7YPbHYXjKDtmC0RAt6IAJ94oKRONhwHjTperY855rg8qCbMpgCgmAy/ GIJT+VLzxZFq7bfZCV6dmRw= =URgN -----END PGP SIGNATURE----- --9zSXsLTf0vkW971A--