Get system serial number in Red Hat Enterprise Linux

This guide shows how to get the system serial number and BIOS information
in Red Hat Enterprise Linux. It will show how to install the dmidecode package.
This has been tested in Red Hat Enterprise Linux 5 and 6.

 

In Red Hat Enterprise Linux 5 and 6  you can install the dmidecode package from Red Hat.

# yum install dmidecode

 

In Red Hat Enterprise Linux 5 and 6 type the following to display the system information.

# /usr/sbin/dmidecode -t 1 | grep -e ‘Manufacturer’ -e ‘Product Name’ \
-e ‘Serial Number’ | cut -f 2

Manufacturer: Dell Inc.
Product Name: PowerEdge 1900
Serial Number: XXXXXXX

 

In Red Hat Enterprise Linux 5 and 6 type the following to display the BIOS information.

# /usr/sbin/dmidecode -t 0 | grep -e ‘Vendor’ -e ‘Version’ -e ‘Release Date’ | cut -f 2

Vendor: Dell Inc.
Version: X.X.X
Release Date: XX/XX/XXXX