Hardware Infomation for Linux

dmidecode

1
2
3
4
5
6
7
8
9
$ sudo apt install dmidecode

$ sudo dmidecode		# Displays information available for the DMI.
$ sudo dmidecode -t bios	# Showing information about the BIOS.
$ sudo dmidecode -t system	# Display detailed information about the system.
$ sudo dmidecode -t processor	# Show the processor information.
$ sudo dmidecode -t cache	# Display the CPU cache information.
$ sudo dmidecode -t memory	# Retrieve information about the system memory.
$ sudo dmidecode -t baseboard	# Retrieve the baseboard (motherboard) information.

Searching Using the -s Option

1
2
3
4
$ sudo dmidecode -s bios-vendor
$ sudo dmidecode -s system-product-name
$ sudo dmidecode -s system-manufacturer
$ sudo dmidecode -s system-serial-number

Advanced Filtering With grep

1
2
$ sudo dmidecode -t bios | grep -i F.31
$ sudo dmidecode -t system | grep -i Hewlett-Packard

ethtool

1
2
$ ethtool eno1
$ sudo ethtool -P eno1	# View mac address

lspci

1
$ lspci | grep Eth

lscpu

1
2
$ lscpu
$ cat /proc/cpuinfo
1
2
$ cpupower frequency-set -g performance
$ cpupower frequency-info

lsblk

1
$ lsblk

ipmitool

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
$ sudo apt install ipmitool

$ ipmitool lan set 1 ipsrc static
$ ipmitool lan set 1 ipaddr  x.x.x.x
$ ipmitool lan set 1 netmask x.x.x.x
$ ipmitool user set password 2
$ ipmitool lan set 1 access on
$ ipmitool lan print 1
$ ipmitool lan set 1 defgw ipaddr x.x.x.x	# Add Gateway
$ ipmitool user list 1				# View ipmi username

sensors

1
2
3
$ sudo apt install lm-sensors

$ sensors
comments powered by Disqus