I need to register for monitoring purposes Linux servers running on real hardware as well as on virtual machines, AWS, Azure,.. by sending their unique id. I figured out that id given by
sudo dmidecode | grep UUID
is the best choice because its result is different even if you have cloned virtual machine without reinitialization of MAC address.
But dmidecode is not installed everywhere. So I'm trying to understand does file /sys/devices/virtual/dmi/id/product_uuid always contains the same UUID as given by dmidecode?