Getting CPU or motherboard serial number?
问题 I'm trying to get the CPU serial or motherboard serial using C or Python for licensing purposes. Is it possible? I'm using Linux . 回答1: You need to use the CPUID instruction. CPUID Most C compilers have some support for inline assembly, but you will need to know what you are doing. 回答2: Under Linux, you could use "lshw -quiet -xml" and parse its output. You'll find plenty of system information here: cpuid, motherboard id and much more. 回答3: You can get the CPUID. Maybe linux command