7 tips for using the dmidecode command to view Linux server hardware information

888u

Last update at :2024-06-29,Edit by888u

For most ordinary server users, when we choose VPS and server products, we are more concerned about the cost of the product, the speed and stability of the server, and more importantly, the service of the service merchant (especially not running away). As we use servers over time and see products from different merchants, we will need to make comparisons. Rigorous users will pay more attention to the hardware configuration information of the products.

Because in the host industry, the configuration gap is related to the cost and expense of the product, at least we must understand that we cannot be fooled. In the previous article about RAKsmart server evaluation, I was exposed to using the dmidecode command to view hardware information such as the server motherboard and hard disk. Therefore, in this article, Snail will sort out the commonly used dmidecode command usage tips in detail. Firstly, it can be used as a note record. Secondly, friends who need to use it can also refer to it in the future.

First, dmidecode checks the motherboard information

dmidecode -t 2

Second, dmidecode queries memory information

dmidecode -t 16

Here you can view the maximum memory size allowed for expansion of the current server.

Third, check the current number of memory and slots

dmidecode|grep -P -A5 \\”Memory Device\\” |grep Size

Fourth, check the number of memory modules

dmidecode -t 17

We can see that the current server has 4GB of memory, and then looking at the above data, we can know that it is a memory stick.

Fifth, check CPU information

dmidecode -t 4

We can also use the cat /proc/cpuinfo command to view CPU information.

Sixth, check server hard disk information

cat /proc/scsi/scsi

Seventh, dmidecode checks the memory rate

dmidecode|grep -A16 \\”Memory Device\\”|grep \\’Speed\\’

To summarize, today is the first time that Snail has come into contact with the dmidecode command, so he simply consults the relevant information and records the server hardware information commands that need to be viewed. If necessary, he can directly copy and use them in the future. If you have friends who are more proficient, see if you need to add relevant parameters.

Recommended site search: registered domain name website registration information inquiry, the best virtual host in Hong Kong and the best US server, US server URL, Hong Kong server rental, Beijing domain name registration, free website domain name registration, mainland China site group server, Internet cafe IP address query,

7 tips for using the dmidecode command to view Linux server hardware information

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码