How to get a server’s serial number remotely?

Posted on In QA

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 3fd12bba-12d4-48c7-875a-7a5f57ed8a9a.

A Xen VM returns nothing.


I guess this is mainly for physical machine :)

Leave a Reply

Your email address will not be published. Required fields are marked *