How to get a server’s serial number remotely?

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
Answered by harryxiyou.

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 :)

Weiwei Jia

Weiwei Jia is a Ph.D. student in the Department of Computer Science at New Jersey Institute of Technology since 2016. His research interests are include storage systems, operating systems and computer systems.

Leave a Reply

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