# dmidecode --string system-uuid
i'm using the code above get the uuid on each host in my environment. As far as I understand the uuid should not change between different Linux distributions on the same host with the same hardware configuration. But after some tests on different Linux distributions I encountered different uuid with this same command
It seems that older dmidecode version will get different UUID result.
for example dmidecode 2.9 from sles11.2 result with string A and dmidecode 2.12 from debian 8 result with string B. How can I get the same uuid no matter the Linux distribution I deploy on my machine?
i wanted to use dmidecode and not MAC address as uuid because i saw that if i replace my network adapter or some other hardware’s settings the uuid will not change. What i need is some unique identifier that i can have on my machine to identify it across minor hardware changes and different OS. using dmidecode cannot be fake in some level i guess instead of just generating uuid and writing it to a file and using it. im working with VMware and machine clones are often used and that why i need something that will not be replicated with the clone.