How to get the serial number of your machine in RHEL 7 or Centos

sudo dmidecode | grep Serial

Advertisements