How to get a server’s serial number remotely?
Posted on In QAHow to get a server’s serial number remotely?
Tested on Linux Ubuntu 14.04 Trusty
> sudo apt-get install dmidecode
> sudo dmidecode -s system-serial-number
I tried this on several Linux boxes with CentOS 7 and it seems
A physical node returns a string like System Serial Number
.
A KVM VM returns a string like 3fd12bba-12d4-48c7-875a-7a5f57ed8a9a
.
A Xen VM returns nothing.
I guess this is mainly for physical machine :)