Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 07 Apr 2007 17:17:35 +0200
From:      Christian Brueffer <brueffer@FreeBSD.org>
To:        Andrew Pantyukhin <infofarmer@FreeBSD.org>
Cc:        Pawel Jakub Dawidek <pjd@freebsd.org>, freebsd-arch@freebsd.org
Subject:   Re: Host ID.
Message-ID:  <20070407151735.GB1994@haakonia.hitnet.RWTH-Aachen.DE>
In-Reply-To: <cb5206420704070808t183dd708v489564d27c0d34dc@mail.gmail.com>
References:  <20070407120656.GD63916@garage.freebsd.pl> <cb5206420704070607j7afe5349r180151dac1ec3e92@mail.gmail.com> <20070407145154.GG63916@garage.freebsd.pl> <cb5206420704070808t183dd708v489564d27c0d34dc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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 <pjd@freebsd.org> 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--




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070407151735.GB1994>