-   Linux - Security (
-   -   HOWTO access Processor ID / other unique values?? (

kartheekpn 03-15-2005 02:12 AM

HOWTO access Processor ID / other unique values??
can anyone please tell me how to obtain a processor's unique ID (if such a thing exist, which I believe does)? Or maybe some other unique number such as the Harddrive's serialnumber or mother boards unique id something. I need it to copy-protect a program which is nearly ready for distribution. Any references to tutorials of related subjects would also be much appreciated.

Darin 03-15-2005 03:54 AM

cat /proc/cpuinfo

Does that give the info you want?

kartheekpn 03-15-2005 04:17 AM

no, i tried ther no luck

Darin 03-15-2005 08:46 AM

I don't have a CPU with an ID, so I wasn't sure if I was not seeing it in /proc/cpuinfo because it doesn't show it or because I don't have one, guess it's not there. If you are just looking for something unique, maybe try one of these:

hdparm -i /dev/hda: hard drive info
ifconfig eth0: NIC's MAC address is unique, but easily spoofed
look through the info files in /proc for something else unique

kartheekpn 03-15-2005 10:57 AM

thanx, i will try thoes.
but i found files called 'cpuid' [its orange colored and not openable by vi or cat ] in /dev/cpu/0
and another in/dev/cpu/1 and so on...
any idea regarding thoes files.

nayaksoft 03-20-2005 05:10 AM

Google is the best Friend , u find lots of utility to know the processor id , try cpuid a utility for linxu

Hope this will solve ur problem

Nayak Sibananda (Reliance Infocomm)

All times are GMT -5. The time now is 05:27 AM.