Verify System Manufacture in Linux

I have a bash script where i need to determine if the system is Dell or Non-Dell for add-on software. I looked around on ‘the google’ and found that you can determine the system manufacturer by running the below command.

[root@stone ~]# dmidecode | grep Dell
Vendor: Dell Inc.
Manufacturer: Dell Inc.
Manufacturer: Dell Inc.
Manufacturer: Dell Inc.
String 1: Dell System

[root@stone ~]# dmidecode -s system-product-name
PowerEdge 2950

[root@stone ~]# dmidecode -s bios-version
2.7.0

[root@stone ~]# dmidecode -s system-serial-number
6GV2KH1

Here are all the available options…

[root@stone ~]# dmidecode -s
dmidecode: option requires an argument — s
String keyword expected
Valid string keywords are:
bios-vendor
bios-version
bios-release-date
system-manufacturer
system-product-name
system-version
system-serial-number
system-uuid
baseboard-manufacturer
baseboard-product-name
baseboard-version
baseboard-serial-number
baseboard-asset-tag
chassis-manufacturer
chassis-type
chassis-version
chassis-serial-number
chassis-asset-tag
processor-family
processor-manufacturer
processor-version
processor-frequency

Leave a Reply