I wanna know that is there's a way, by which we can generate a unique hardware hash of particular machine? The hash should be unique to the machine and hash should be different even two machines are of same configuration. Is it possible?
You could use the MAC address of
That will give you something like
These are supposed to be unique but they're not always. If all your network hardware comes from the same manufacturer, you might find some crossover, so be careful with it.
Failing that, you could generate your own unique string and store it in
Will generate something as random as possible eg:
Uses time and
Both are fairly unique but, as with anything random, there is always the possibility of a clash. Keep a central list to avoid problems like this.
The simplest solution I could think of is:
According to the manual page of
I tested this command on two machines with the same hardware and the result is different as expected from the name