dmidecode
dmidecode命令
- 查看服务器型号、序列号:
[root@jackxiang ~]# dmidecode|grep "System Information" -A9|egrep "Manufacturer|Product|Serial"
- Linux 查看内存的插槽数,已经使用多少插槽.每条内存多大:
[root@jackxiang ~]# dmidecode|grep -A5 "Memory Device"|grep Size|grep -v Range
- Linux 查看内存的频率:
[root@localhost htdocs]# dmidecode|grep -A16 "Memory Device"|grep 'Speed'
- 在linux查看内存型号的命令:
dmidecode -t memory
- 查看主板型号:
dmidecode |grep -A16 "System Information$"
- 内存槽及内存条:
dmidecode |grep -A16 "Memory Device$"
- 硬盘:
fdisk -l smartctl -a /dev/sda
- 网卡:
mii-tool lspci | grep -i 'eth' dmidecode|grep -P 'Maximum\s+Capacity' //最大支持几G内存 # cat /proc/cpuinfo //查看cpu个数与频率 # dmidecode |grep "Product Name" //查看服务器品牌和型号 # dmidecode|grep -P -A5 "Memory\s+Device"|grep Size|grep -v Range //总共几个插槽,已使用几个插槽
- Linux查看PCIe版本及速率
dmidecode | grep "PCI"