![dmidecode 序列号](https://img-blog.csdnimg.cn/img_convert/7154621a4a1666695031bacaacab5d84.png)
dmidecode 序列号
I have a lot of systems work in data center. I have started to create inventory about this servers. I want to be everything is documented in this inventory. There are different tools to get information about the system chassis. In this tutorial we will look how to get information about chassis serial number, manufacturer and product name.
我在数据中心有很多系统工作。 我已经开始创建有关此服务器的清单。 我想成为清单中记录的所有内容。 有多种工具可获取有关系统机箱的信息。 在本教程中,我们将研究如何获取有关机箱序列号,制造商和产品名称的信息。
获取系统序列号 (Get System Serial Number)
System serial number is given by manufacturer to identify the system. I may be used to track licensing, guaranty etc. We can get the system serial number like below. Keep in mind to get these information we need root privilege. We wil use sudo
command to get root privileges.
系统序列号由制造商提供以标识系统。 我可能会被用来跟踪许可,担保等。我们可以获得如下的系统序列号。 请记住,要获取这些信息,我们需要root特权。 我们将使用sudo
命令获取root特权。
$ sudo dmidecode -s system-serial-number
![Get System Serial Number](https://img-blog.csdnimg.cn/img_convert/4a58e5883de4ac49bc31b393d7cd6ab7.png)
The serial number is printer properly and also the system information is provided which is VMware
in this example.
序列号是正确的打印机,并且还提供了系统信息,在此示例中为VMware
。
获取系统制造商 (Get System Manufacturer)
We will get the company who manufactured this system with the system-manufacturer
option provided to the -s
option.
我们将获得制造该系统的公司,并在-s
选项中提供了system-manufacturer
选项。
$ sudo dmidecode -s system-manufacturer
![Get System Manufacturer](https://img-blog.csdnimg.cn/img_convert/9cbac48d1884b352af1f660e9545a4d1.png)
Inthis example VMware
is the manufacturer of the system.
在此示例中, VMware
是系统的制造商。
获取产品名称 (Get Product Name)
Product name specifies the exact name of the system. We can print the product name with the -s system-product-name
option like below.
产品名称指定系统的确切名称。 我们可以使用-s system-product-name
选项打印产品名称,如下所示。
$ sudo dmidecode -s system-product-name
![Get Product Name](https://img-blog.csdnimg.cn/img_convert/91326961b38ef58c668f03e63b81524b.png)
如何在Linux中使用dmidecode命令获取系统序列号,制造商和产品名称? 信息移植 (How To Get System Serial Number, Manufacturer and Product Name In Linux with dmidecode Command? Infografic)
![How To Get System Serial Number, Manufacturer and Product Name In Linux with dmidecode Command? Infografic](https://img-blog.csdnimg.cn/img_convert/1f3ff869b7a79c2ec721d887087edb27.png)
dmidecode 序列号