On 8/17/07, Stephen Lau <[EMAIL PROTECTED]> wrote: > Anil Gulecha wrote: > > Hi, > > > > I'm looking for a very simple way to generate PCID in an x86 > > machinevery early in the bootup (when root file system is mounted). > > the varience should be enough to distinguish between various desktps, > > laptops and motherboards. I'm not looking for absolute unique IDs > > (around 8 characters). > > > > Currently I came up : > > /usr/X11/bin/scanpci | /usr/bin/digest -a md5 | /usr/bin/cut -c 1-8 > > > > .. that normally works and would be useful enough, but it throws an > > error when used evry early at startup ( digest: failed PKCS11 > > CKR_GENERAL_ERROR or some such. Adding a 'cryptoadm start' before thid > > did not help : /dev/cryptoadm not found) > > > > iostat seems to be another option, but I feel is not very varied. Any > > suggestions, methods? > > > > Anil > > _______________________________________________ > > opensolaris-code mailing list > > opensolaris-code@opensolaris.org > > http://mail.opensolaris.org/mailman/listinfo/opensolaris-code > > prtconf(1M) ? > Hmm, it isnt the random data that is hard to get (can use a cocktail of prtconf and scanpci).. its the generating the pcid part (something like digest) using some kind of hashing already available instead of writing a new tool. Dont really need md5.
Anil > -- > stephen lau // [EMAIL PROTECTED] | http://whacked.net > opensolaris // solaris kernel development > _______________________________________________ opensolaris-code mailing list opensolaris-code@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opensolaris-code