Anil Gulecha writes:
> 1) CPU serial number - x86 cpus do not have unique ids.. sparc does!
> 2) i considered using the 48bit mac id of the Ethernet card.. however
> ifconfig doesn't o/p the details that early in the boot process. If
> there another method to get the card detials, I could use it.

Don't forget that machines may have zero, one, or many Ethernet
interfaces, and that Ethernet interfaces can be removed and replaced
and inserted into other machines.

Getting a fixed ID for the system often means plumbing the depths of
what the "system" is.  What about CPU cards plugged into mini-PCI
cages?  What about swap-outs of CPUs?  What happens on backup and
restore and upgrade or on migration between machines or hardware
upgrades?

I don't think there's any clear answer other than to fudge it.  Use
something like libuuid to create a unique identifier, write it some
place you won't forget (such as /etc), and make sure you have a plan
in place for when it _does_ end up changing or (worse!) getting
duplicated by some administrative blunder.

-- 
James Carlson, Solaris Networking              <[EMAIL PROTECTED]>
Sun Microsystems / 1 Network Drive         71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677
_______________________________________________
opensolaris-code mailing list
opensolaris-code@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code

Reply via email to