Java Cpu Serial Number

  1. Cpu Serial Number
  2. Serial Number Idm
Get cpu serial number

Get motherboard serial Number of local system. Niraj Pendal. Greenhorn Posts: 11. How to get hard disk serial number using java Remote hardware information. Where can I find the serial number of the Raspberry Pi I am currently using? How do I get the serial number? Ask Question 60. (v6l) BogoMIPS: 697.95 Features: swp half thumb fastmult vfp edsp java tls CPU implementer: 0x41 CPU architecture: 7 CPU variant: 0x0 CPU part: 0xb76 CPU revision: 7 Hardware: BCM2708 Revision.

Oshi does not presently have this capability. I am looking into adding it, but it looks problematic for several reasons:

  • There's no way to get the info from Linux without root permissions (dmidecode) or external packages that the user is required to install.
  • The only way to get it from Mac OS X is by parsing a command line ioreg -l (faster) or system_profiler SPHardwareDataType (slower, more info).
  • It is possible to get it programmatically from Windows, although the 'easiest' way is by parsing a command line wmic bios get serialnumber.
Cpu

Additionally, using this information for licensing is problematic, due to people using virtual machines, being able to edit their registry, etc.

Given the large amount of work involved to get this working only on 2 platforms, and the unreliability of the information for practical use, I'm shying away from actually coding this up... if all you're doing is generating a license key, there are probably better (native code) ways to do it than using Java (perhaps scripts that allow sudo access).

My research has consistently pointed to the flaws of any hardware-based approach, and almost unanimously suggested using the 'first MAC address' as a generally easy approach (built into Java already) that will work for most casual users, concluding the effort is not worth it for more complicated approaches.

Cpu Serial Number

Java

Serial Number Idm

If your project is low budget enough that you're looking to open source to get licence keys, you probably should be content with the MAC solution. If you've got expensive enough software that requires strong licensing, you might try to find a commercial solution.