Windows查看主机型号的方法:
1、点击开始菜单,在搜索框中输入cmd;
2、在黑窗口中输入命令 : wmic csproduct get name
回车即可看到主机型号
C:\Users\zhouxueli>wmic csproduct get name
Name
OptiPlex 990
3、继续查看主机序列号,可输入:wmic bios get serialnumber
回车即可看到主机序列号
C:\Users\zhouxueli>wmic bios get serialnumber
SerialNumber
DPNPB3X
Linux(Ubuntu)中查看主机型号的方法:
1、打开命令终端;
2、查看主机型号: sudo dmidecode | grep “Product”
zhouxueli@zhouxueli:~$ sudo dmidecode | grep "Product"
[sudo] password for zhouxueli:
Product Name: HP EliteDesk 800 G2 SFF
Product Name: 8054
3、查看主机序列号:
sudo dmidecode | grep -i “serial number”
额,尴尬,这个我好想有点晕,不知道是哪个了,等我查出来知道是哪个了,再修正回来
zhouxueli@zhouxueli:~$ sudo dmidecode | grep -i "serial number"
Serial Number: To Be Filled By O.E.M.
Serial Number: 6CR7019F4H
Serial Number: PESZC0LCY555H4
Serial Number: 6CR7019F4H
Serial Number: NULL
Serial Number: 152778BE
Serial Number: 9529774D
Serial Number: Not Specified
Serial Number: 902A9B80
补充,查看主机序列号的命令是:sudo dmidecode -t 2 | grep Serial
另外
查看 CPU ID命令是:
sudo dmidecode -t 4 | grep ID
查看主板序列命令号:
sudo dmidecode -t 2 | grep Serial
查看MAC地址命令是:
sudo lshw -c network | grep serial | head -n 1