Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Serial number

Thread view: 
tardas - 21 May 2007 13:49 GMT
i want to generate a number that is unique for a machine.
I decided to get hdd serial. But i have to find more than that.
which hardware numbers can i take? how?
Lew - 21 May 2007 14:58 GMT
> i want to generate a number that is unique for a machine.
> I decided to get hdd serial. But i have to find more than that.
> which hardware numbers can i take? how?

Please do not multi-post (the placement of the same message independently in
multiple newsgroups).  It fragments the thread and frustrates folks who are
trying to help you.

If you absolutely feel the overwhelming need to reach multiple groups, which
you shouldn't usually, then cross-post (place the same message into multiple
groups at once using multiple addresses on the same copy of the message so
that all replies are seen by all groups).

Usually it's better to pick the one group that fits.  Read the groups' FAQs.

Signature

Lew

tardas - 21 May 2007 15:09 GMT
> > i want to generate a number that is unique for a machine.
> > I decided to get hdd serial. But i have to find more than that.
[quoted text clipped - 13 lines]
> --
> Lew

thanx lew. i know how to use groups.
Andrew Thompson - 21 May 2007 15:20 GMT
...
(re. multi-posting)
>...i know how to use groups.

The evidence suggests otherwise.

Signature

Andrew Thompson
http://www.athompson.info/andrew/

tardas - 21 May 2007 15:58 GMT
> ..
> (re. multi-posting)
[quoted text clipped - 7 lines]
>
> Message posted via JavaKB.comhttp://www.javakb.com/Uwe/Forums.aspx/java-general/200705/1

i know i did a mistake but there is no need to be wordy. This is a
group that i can request for help. I have requested.
Lew - 21 May 2007 15:26 GMT
>>> i want to generate a number that is unique for a machine.
>>> I decided to get hdd serial. But i have to find more than that.
[quoted text clipped - 14 lines]
>
> thanx lew. i know how to use groups.

You're very welcome.  Glad I could help.

Signature

Lew

Roedy Green - 28 May 2007 20:34 GMT
>> i want to generate a number that is unique for a machine.
>> I decided to get hdd serial. But i have to find more than that.
>> which hardware numbers can i take? how?

for Intel CPU, there isa CPU serial number you can get at via JNI. See
http://mindprod.com/products1.html#CPUSER
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
steve - 02 Jun 2007 09:25 GMT
>>> i want to generate a number that is unique for a machine.
>>> I decided to get hdd serial. But i have to find more than that.
[quoted text clipped - 7 lines]
> The Java Glossary
> http://mindprod.com

only if it is enabled in the bios.

Steve
Lew - 02 Jun 2007 13:12 GMT
>>>> i want to generate a number that is unique for a machine.
>>>> I decided to get hdd serial. But i have to find more than that.
[quoted text clipped - 8 lines]
>
> only if it is enabled in the bios.

Thus your "Write Once, Run Anywhere" code becomes non-portable even down to
the hardware level, much less the OS level.

AFAIK there is no inherent unique identifier for a computer, at least none
assigned by an outside authority with a promise of uniqueness.  In the case of
the Intel CPUID, the public reacted negatively to the proposal and it either
died or went underground.  Does the chip even still have it?  Is it enabled or
disabled by default?

Looks like you'll have to create your own.

Signature

Lew

Martin Gregorie - 02 Jun 2007 15:05 GMT
>>>>> i want to generate a number that is unique for a machine.
>>>>> I decided to get hdd serial. But i have to find more than that.
[quoted text clipped - 14 lines]
>
> Looks like you'll have to create your own.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

Martin Gregorie - 02 Jun 2007 15:13 GMT
> AFAIK there is no inherent unique identifier for a computer, at least
> none assigned by an outside authority with a promise of uniqueness.

I think the nearest you can come is the hardware address in an Ethernet
card - IIRC that's guaranteed to be unique, rather like the IMEI in a
mobile phone. However, cards can be swapped, a computer may have more
than one Ethernet interface or it may be using a modem and not have any
Ethernet cards installed at all.

Last but not least, there seems to be no way to access the card's
hardware address within standard classes so you'd need to use
non-portable native code to read it.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

steve - 03 Jun 2007 02:18 GMT
>> AFAIK there is no inherent unique identifier for a computer, at least
>> none assigned by an outside authority with a promise of uniqueness.
[quoted text clipped - 8 lines]
> hardware address within standard classes so you'd need to use
> non-portable native code to read it.

sorry  even the  Number in the E card are not unique,  there was a cock up
several years ago, that resulted in several brands of card having the same
sequence of numbers.
That said , the number can be changed by a small  c program,  , hackers use
it frequently to hide the nic address/number

steve
Martin Gregorie - 03 Jun 2007 10:58 GMT
>>> AFAIK there is no inherent unique identifier for a computer, at least
>>> none assigned by an outside authority with a promise of uniqueness.
[quoted text clipped - 14 lines]
> That said , the number can be changed by a small  c program,  , hackers use
> it frequently to hide the nic address/number

The duplication had passed me by (and isn't surprising) but I'd always
thought the number, once assigned was permanent. I live and learn. Thanks.

Signature

martin@   | Martin Gregorie
gregorie. | Essex, UK
org       |

steve - 03 Jun 2007 13:56 GMT
>>>> AFAIK there is no inherent unique identifier for a computer, at least
>>>> none assigned by an outside authority with a promise of uniqueness.
[quoted text clipped - 17 lines]
> The duplication had passed me by (and isn't surprising) but I'd always
> thought the number, once assigned was permanent. I live and learn. Thanks.

The card is made as part of a formal manufacturing process , where to ensure
manufacturing consistency ,  things have to be manufactured identically, once
they pass the "burn in testing",  the  card "specific " settings are written
to the  EEprom.  , it's the same with a lot of modern hardware.

Steve
Eric Smith - 21 May 2007 21:45 GMT
> i want to generate a number that is unique for a machine.
> I decided to get hdd serial. But i have to find more than that.
> which hardware numbers can i take? how?

You're not concerned about your software working across various
platforms?  If you're sure it's only going to run on one platform
(e.g., Windows), there are lots of things you can use.

On most platforms you can get an Ethernet MAC address, but you may
need to write native methods to do it.  However, some platforms
may have multiple MAC addresses, and some may have different MAC
addresses under different circumstances (when connected wired vs.
wireless).
tardas - 22 May 2007 08:24 GMT
> You're not concerned about your software working across various
> platforms?
Software should work across various platforms
Eric Smith - 22 May 2007 09:00 GMT
>>> I decided to get hdd serial. But i have to find more than that.
>>> which hardware numbers can i take? how?

I wrote:
>> You're not concerned about your software working across various
>> platforms?

> Software should work across various platforms

It's not going to if you do stuff like get the hdd serial.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.