How 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
A Xen VM returns nothing.
I guess this is mainly for physical machine :)