How to get a server's serial number remotely?

How to get a server's serial number remotely?

asked Nov 21, 2017 by harryxiyou (5,830 points)

1 Answer

 
Best answer

Tested on Linux Ubuntu 14.04 Trusty

> sudo apt-get install dmidecode    
> sudo dmidecode -s system-serial-number
answered Nov 21, 2017 by harryxiyou (5,830 points)

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.

commented Nov 22, 2017 by Eric Z Ma (44,280 points)

I guess this is mainly for physical machine :)

commented Nov 22, 2017 by harryxiyou (5,830 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost

...