Fedora Linux Support Community & Resources Center
  #1  
Old 23rd March 2005, 03:07 PM
cweng Offline
Registered User
 
Join Date: Oct 2004
Posts: 24
CPU/mother board serial number

Is there any system call I can use to get the CPU or mother board serial number ?
I am trying to get a unique identifier of a machine.
Reply With Quote
  #2  
Old 23rd March 2005, 05:43 PM
macemoneta's Avatar
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
Your best bet is probably to create a unique signature on each machine:

dd if=/dev/random of=thisMachine bs=128 count=1

Alternatively, you could use the MAC address of the first NIC in the machine:

ip link show
Reply With Quote
  #3  
Old 23rd March 2005, 05:57 PM
ptkdb Offline
Registered User
 
Join Date: Mar 2005
Posts: 7
Actually there are a couple of instructions to get the serial number for the CPU in Pentium III's and above. I think they're covered in some of the instruction set guides that Intel put out. I'm not sure what AMD does that might be similar, or they emulate the behavior. Intel took alot of crap for this in the press a few years ago.
Reply With Quote
  #4  
Old 23rd March 2005, 06:10 PM
ghaefb's Avatar
ghaefb Offline
Retired Community Manager
 
Join Date: Apr 2004
Location: Slovenia
Age: 30
Posts: 1,713
Some CPU info: 'cat /proc/cpuinfo' and 'cat /var/log/dmesg' or run '/usr/sbin/x86info'
For motherboard check the dmesg file, usually there is no motherboard info, mostly chipset.
__________________
_ghaefb


blog & sysinfo
Reply With Quote
  #5  
Old 23rd March 2005, 06:27 PM
macemoneta's Avatar
macemoneta Offline
Registered User
 
Join Date: May 2004
Location: NJ
Posts: 913
The CPU serial number for Intel CPUs is usually disabled in the BIOS by most manufacturers, because of the negative feedback they received. AMD CPUs don't have a serial number reporting facility (at least it's not not in my BIOS, nor is it reported in /proc/cpuinfo).

The x86info utility isn't included in the x86_64 version of the kernel-utils package, so you can't rely on that (and it doesn't provide a unique identifier).

The NIC card HWADDR (MAC) is supposed to be unique, but it's actually not enforced or guaranteed.

That's why if you need a unique identifier, it's best to create one.
Reply With Quote
  #6  
Old 23rd March 2005, 06:28 PM
tashirosgt Offline
Registered User
 
Join Date: Aug 2004
Posts: 3,855
If the purpose is to keep track of The World, then I think The World is too big to keep track of. If you are trying to keep track of the machines on your own network, why not use the MAC addresses?

The best rule-the-World strategy would be to take a set of various non-unique pieces of information that are available about the machine and hash them into some sort of identifier that would have a large probability of being unique. The trouble with using things like the /proc/cpuinfo file is that someday someone might decide that this file needs a brand new format. So you would have to look at the source code for routines that interrogate the hardware and hope that no BIOS update to the motherboard would change the format of the hardware information.
__________________
"Never let the task you are trying to accomplish distract you from the study of computers."
Reply With Quote
  #7  
Old 16th January 2012, 12:33 PM
M.e.M.O. Offline
Registered User
 
Join Date: May 2007
Posts: 47
windows_7firefox
Re: CPU/mother board serial number

Hello ,

Sorry for bumping up a very old thread. I needed same information and this thread is coming up top almost in every search .

I have found the solution over lshw in bash , and it has a GUI for desktop environments too . Mainboard / CPU seial and loads of stuff . I thought it should be written here for later searches.
Reply With Quote
  #8  
Old 18th January 2012, 07:26 PM
rtguille Offline
Registered User
 
Join Date: Dec 2010
Posts: 86
linuxopera
Re: CPU/mother board serial number

For recent 2.6.x kernels:

# cat /sys/devices/virtual/dmi/id/chassis_serial
# cat /sys/devices/virtual/dmi/id/board_serial
# cat /sys/devices/virtual/dmi/id/bios_version
Reply With Quote
  #9  
Old 19th January 2012, 04:38 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: CPU/mother board serial number

Quote:
Originally Posted by rtguille View Post
For recent 2.6.x kernels:

# cat /sys/devices/virtual/dmi/id/chassis_serial
# cat /sys/devices/virtual/dmi/id/board_serial
# cat /sys/devices/virtual/dmi/id/bios_version
Not always reliable

Results of those commands on one of my systems here:

Code:
[root@tower20 default]# cat /sys/devices/virtual/dmi/id/chassis_serial 
To Be Filled By O.E.M.
[root@tower20 default]# cat /sys/devices/virtual/dmi/id/board_serial 
To be filled by O.E.M.
[root@tower20 default]# cat /sys/devices/virtual/dmi/id/bios_version 
V4.7
[root@tower20 default]#
Reply With Quote
  #10  
Old 19th January 2012, 09:27 AM
stevea's Avatar
stevea Offline
Registered User
 
Join Date: Apr 2006
Location: Ohio, USA
Posts: 8,302
linuxfedorafirefox
Re: CPU/mother board serial number

If you are going to use MAC addresses - then keep in mind many systems have several enets and some could have none. For the multiple case you need to select a unique one among many, for example the smallest after a numeric sort.
__________________
None are more hopelessly enslaved than those who falsely believe they are free.
Johann Wolfgang von Goethe
Reply With Quote
  #11  
Old 19th January 2012, 10:39 AM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,849
linuxfirefox
Re: CPU/mother board serial number

This works for me
Quote:
dmidecode | more
Reply With Quote
  #12  
Old 19th January 2012, 02:54 PM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: CPU/mother board serial number

Interesting, DM...

I don't get any unique identifying information when I run that here...

Code:
# dmidecode 2.11
SMBIOS version fixup (2.31 -> 2.3).
SMBIOS 2.3 present.
57 structures occupying 2076 bytes.
Table at 0x000EF790.

Handle 0x0000, DMI type 0, 20 bytes
BIOS Information
	Vendor: IBM
	Version: 2AKT51AUS
	Release Date: 07/06/2005
	Address: 0xE4500
	Runtime Size: 113408 bytes
	ROM Size: 512 kB
	Characteristics:
		PCI is supported
		PNP is supported
		APM is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		EDD is supported
		ACPI is supported
		USB legacy is supported
		AGP is supported
		LS-120 boot is supported
		Smart battery is supported
		BIOS boot specification is supported

Handle 0x0001, DMI type 1, 25 bytes
System Information
	Manufacturer: IBM
	Product Name: 8189-NU7
	Version: Not Specified
	Serial Number: Not Specified
	UUID: Not Specified
	Wake-up Type: Power Switch

Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
	Manufacturer: IBM
	Product Name: IBM
	Version: Not Specified
	Serial Number: Not Specified

Handle 0x0003, DMI type 3, 17 bytes
Chassis Information
	Manufacturer: IBM
	Type: Mini Tower
	Lock: Not Present
	Version: Not Specified
	Serial Number: Not Specified
	Asset Tag: ........................
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: None
	OEM Information: 0x00000000

Handle 0x0004, DMI type 4, 35 bytes
Processor Information
	Socket Designation: WMT478/NWD
	Type: Central Processor
	Family: Pentium 4
	Manufacturer: GenuineIntel
	ID: 29 0F 00 00 FF FB EB BF
	Signature: Type 0, Family 15, Model 2, Stepping 9
	Flags:
		FPU (Floating-point unit on-chip)
		VME (Virtual mode extension)
		DE (Debugging extension)
		PSE (Page size extension)
		TSC (Time stamp counter)
		MSR (Model specific registers)
		PAE (Physical address extension)
		MCE (Machine check exception)
		CX8 (CMPXCHG8 instruction supported)
		APIC (On-chip APIC hardware supported)
		SEP (Fast system call)
		MTRR (Memory type range registers)
		PGE (Page global enable)
		MCA (Machine check architecture)
		CMOV (Conditional move instruction supported)
		PAT (Page attribute table)
		PSE-36 (36-bit page size extension)
		CLFSH (CLFLUSH instruction supported)
		DS (Debug store)
		ACPI (ACPI supported)
		MMX (MMX technology supported)
		FXSR (FXSAVE and FXSTOR instructions supported)
		SSE (Streaming SIMD extensions)
		SSE2 (Streaming SIMD extensions 2)
		SS (Self-snoop)
		HTT (Multi-threading)
		TM (Thermal monitor supported)
		PBE (Pending break enabled)
	Version: Intel(R) Pentium(R) 4 CPU 2.80GHz
	Voltage: 1.8 V
	External Clock: 100 MHz
	Max Speed: 3400 MHz
	Current Speed: 2800 MHz
	Status: Populated, Enabled
	Upgrade: Socket 478
	L1 Cache Handle: 0x0005
	L2 Cache Handle: 0x0006
	L3 Cache Handle: Not Provided
	Serial Number: Not Specified
	Asset Tag: Not Specified
	Part Number: Not Specified

...... Lots of other things cut that pertain to cache, ports, etc... ...
Got me curious, so ran it on another machine here as well..

Still no unique identifying information:

Code:
# dmidecode 2.11
SMBIOS 2.6 present.
58 structures occupying 2067 bytes.
Table at 0x000FD2D0.

Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
	Vendor: American Megatrends Inc.
	Version: V4.7
	Release Date: 07/28/2010
	Address: 0xF0000
	Runtime Size: 64 kB
	ROM Size: 1024 kB
	Characteristics:
		ISA is supported
		PCI is supported
		PNP is supported
		APM is supported
		BIOS is upgradeable
		BIOS shadowing is allowed
		ESCD support is available
		Boot from CD is supported
		Selectable boot is supported
		BIOS ROM is socketed
		EDD is supported
		5.25"/1.2 MB floppy services are supported (int 13h)
		3.5"/720 kB floppy services are supported (int 13h)
		3.5"/2.88 MB floppy services are supported (int 13h)
		Print screen service is supported (int 5h)
		8042 keyboard services are supported (int 9h)
		Serial services are supported (int 14h)
		Printer services are supported (int 17h)
		CGA/mono video services are supported (int 10h)
		ACPI is supported
		USB legacy is supported
		LS-120 boot is supported
		ATAPI Zip drive boot is supported
		BIOS boot specification is supported
		Targeted content distribution is supported
	BIOS Revision: 8.16

Handle 0x0001, DMI type 1, 27 bytes
System Information
	Manufacturer: MICRO-STAR INTERNATIONAL CO.,LTD
	Product Name: MS-7529
	Version: 1.0
	Serial Number: To Be Filled By O.E.M.
	UUID: To Be Filled By O.E.M.
	Wake-up Type: Power Switch
	SKU Number: To Be Filled By O.E.M.
	Family: To Be Filled By O.E.M.

Handle 0x0002, DMI type 2, 15 bytes
Base Board Information
	Manufacturer: MICRO-STAR INTERNATIONAL CO.,LTD
	Product Name: G31TM-P21 (MS-7529)
	Version: 1.0
	Serial Number: To be filled by O.E.M.
	Asset Tag: To Be Filled By O.E.M.
	Features:
		Board is a hosting board
		Board is replaceable
	Location In Chassis: To Be Filled By O.E.M.
	Chassis Handle: 0x0003
	Type: Motherboard
	Contained Object Handles: 0

Handle 0x0003, DMI type 3, 21 bytes
Chassis Information
	Manufacturer: MICRO-STAR INTERNATIONAL CO.,LTD
	Type: Desktop
	Lock: Not Present
	Version: 1.0
	Serial Number: To Be Filled By O.E.M.
	Asset Tag: To Be Filled By O.E.M.
	Boot-up State: Safe
	Power Supply State: Safe
	Thermal State: Safe
	Security Status: None
	OEM Information: 0x00000000
	Height: Unspecified
	Number Of Power Cords: 1
	Contained Elements: 0

Handle 0x0004, DMI type 4, 42 bytes
Processor Information
	Socket Designation: CPU1
	Type: Central Processor
	Family: Unknown
	Manufacturer: Intel            
	ID: F2 06 00 00 FF FB EB BF
	Version: Genuine Intel(R) CPU            2160  @ 1.80GHz     
	Voltage: 1.3 V
	External Clock: 200 MHz
	Max Speed: 1800 MHz
	Current Speed: 2400 MHz
	Status: Populated, Enabled
	Upgrade: Socket LGA775
	L1 Cache Handle: 0x0005
	L2 Cache Handle: 0x0006
	L3 Cache Handle: 0x0007
	Serial Number: To Be Filled By O.E.M.
	Asset Tag: To Be Filled By O.E.M.
	Part Number: To Be Filled By O.E.M.
	Core Count: 2
	Core Enabled: 2
	Thread Count: 2
	Characteristics:
		64-bit capable

.... same as above, cut the other devices info ...

Last edited by DBelton; 19th January 2012 at 03:31 PM.
Reply With Quote
  #13  
Old 19th January 2012, 05:43 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,849
linuxfirefox
Re: CPU/mother board serial number

Yeh it works on the dell but not on my main comp
Reply With Quote
Reply

Tags
board, cpu or mother, number, serial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
4.1 sound Drivers for FC-7 for M2A-VM Mother board santhoshonkar Installation and Live Media 0 12th February 2008 12:29 PM
On board Display of Foxconn P4M800P7MA-RS2 mother board hosammy Hardware & Laptops 1 9th March 2007 07:38 PM
What Brands of mother board should i look at rick3878894 Hardware & Laptops 6 27th July 2006 11:32 AM
Fedora Core Mother Board/CPU tvandame Hardware & Laptops 3 29th October 2005 01:41 AM
FC 3 and Intel D865GBF Mother board farrukh Installation and Live Media 1 4th January 2005 05:52 PM


Current GMT-time: 09:03 (Friday, 24-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat