Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 May 2000 17:29:20 -0500
From:      Dan Nelson <dnelson@emsphone.com>
To:        Lowell Gilbert <lowell@world.std.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: uuidgen or other GUID-generating utility
Message-ID:  <20000524172920.A19867@dan.emsphone.com>
In-Reply-To: <44bt1v7glr.fsf@lowellg.ne.mediaone.net>; from "Lowell Gilbert" on Wed May 24 18:01:20 GMT 2000
References:  <27E4B476932BD211945B00805FE67AF5089DE1E3@lnxdayexch05.lexis-nexis.com> <20000524161737.A2307@dan.emsphone.com> <44bt1v7glr.fsf@lowellg.ne.mediaone.net>

next in thread | previous in thread | raw e-mail | index | archive | help
In the last episode (May 24), Lowell Gilbert said:
> Dan Nelson <dnelson@emsphone.com> writes:
> > No, FreBSD doesn't have a program to pull the ethernet address and
> > print a guid formatted like Linux's "uuidgen -t".  I don't imagine
> > that the program would be hard to port to FreeBSD, though.
> 
> Well, you could do that from the command line, too, using ifconfig(8)
> to get the ethernet address, and date(1) to get the time, and an
> assortment of text utilities to grab just the pieces you want.  Ten

After a bit of digging I found that a uuid has an internal structure. 
http://www.ics.uci.edu/pub/ietf/webdav/uuid-guid/draft-leach-uuids-guids-01.txt
tells you how you have to format one, and includes sample code.  Put
your MAC address in the file called "nodeid" and you're set. 

Side note: Considering the fact that MS uses UUIDs almost everywhere,
it's amazing that nowhere on Microsoft's development site could I find
a description of a UUID more detailed than "unique 128-bit identifier".

-- 
	Dan Nelson
	dnelson@emsphone.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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