On 8/17/07, James Carlson <[EMAIL PROTECTED]> wrote: > 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. >
These would be concerns if I were very stringent about identifying the exact machine. The reason behind this is simply to setup the keyboard locale, th desktop environment and the network (as in DHCP, static, etc) and load the particular xorg.conf. For these purposes the mac address method would be more than sufficient. IF the user were to replace his interface the maximum negative would be he would have to select the layout and desktop another time to save the new entry. This is too small a negative to give up such a simple solution. Anil > -- > 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