Skip to content

Instantly share code, notes, and snippets.

@CMCDragonkai
Last active March 11, 2017 09:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CMCDragonkai/ddfa0a703184f4879db32304d5c23cd8 to your computer and use it in GitHub Desktop.
Save CMCDragonkai/ddfa0a703184f4879db32304d5c23cd8 to your computer and use it in GitHub Desktop.
CLI: Detect Hardware Information (dmidecode)

Detect Hardware Information

Not all hardware information is accessible through the operating system. But the ones that are, are exposed through the dmidecode command:

> dmidecode --string='bios-vendor'
EUROCOM
> dmidecode --string='bios-version'
1.03.15EC v2
> dmidecode --string='system-manufacturer'
EUROCOM
> dmidecode --string='system-product-name'
P7 Pro SE
> dmidecode --string='system-version'
Not Applicable
> dmidecode --string='baseboard-manufacturer'
EUROCOM P7 Pro SE
> dmidecode --string='baseboard-product-name'
powered by premamod.com
> sudo dmidecode --string='chassis-manufacturer'
Notebook                        
> sudo dmidecode --string='chassis-version'  
N/A                             
> sudo dmidecode --string='chassis-serial-number'
None
> sudo dmidecode --string='chassis-asset-tag'
No Asset Tag
> sudo dmidecode --string='processor-family'
Xeon
> sudo dmidecode --string='processor-manufacturer'
Intel
> sudo dmidecode --string='processor-version'
Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
> sudo dmidecode --string='processor-frequency'
3500 MHz
> sudo dmidecode -t bios -t system -t baseboard -t chassis
# produces an entire hardware report

Would be great to have a database of hardware to correlate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment