Results 1 to 4 of 4
Hi all
How can a read CPU or BORD serial number? I am a new member on this site and I need your help on this issue.
I know there ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-10-2003 #1Just Joined!
- Join Date
- Aug 2003
- Posts
- 3
CPU or BORD serial number
Hi all
How can a read CPU or BORD serial number?I am a new member on this site and I need your help on this issue.
I know there are some files in /proc but I didn’t find any S/N!
Thanks
Amihay Tabul
- 08-10-2003 #2Linux Engineer
- Join Date
- Apr 2003
- Location
- Sweden
- Posts
- 796
In the /proc/cpuinfo you can see a little information on your cpu:s on your system, but im not sure if you can see the serialnumber though. Just execute this command as the root-user.
Code:cat /proc/cpuinfo
Regards
Andutt
- 08-10-2003 #3Just Joined!
- Join Date
- Aug 2003
- Posts
- 3
i did look at /proc/cpuinfo but there is no Serial Number.
but thanks
- 08-10-2003 #4Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Serial number? Are you referring to the CPUID stuff that they added some years ago in order to be able to identify a single processor? In that case, you can get it from /proc/cpu/*/cpuid, provided that the system is running on a kernel that is configured to provide that. Also, those files act like /dev/zero once the CPUID has been read, so you'll need to do something like this:
Or if you're writing a C program, just read the first 32 bytes and then ignore the rest.Code:dd if=/dev/cpuid/0/cpuid bs=32 count=1 2>/dev/null


Reply With Quote
