In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "common commands for linux to view hardware information". The content of the explanation is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "common commands for linux to view hardware information".
1. View cpu information
(1) cpu model
(2) number of cores
12 physical cores, hyperthreaded 24 cores
two。 View memory information
Cat / proc/meminfo
Or:
Free-m
Memory size: 193793m
Swap size: 7844m
3. View operating system information
(1) View kernel information
(2) View the version information of the operating system
(3) check the number of bits running in the operating system
4. Check the network card information
(1)。 View the overall Nic information
The machine contains a total of two network cards eth0 and eth2,lo to represent local addresses. Note that eth0 and eth2 bind the same physical address HWaddr. Here, multiple network cards are aggregated into one through Bonding, which can provide load balancing (load-balancing), fault tolerance (fault-tolerance) and other functions.
(2)。 View binding mode
(3) View the information of a certain network card
5. View disk information
(1) df
6. View raid card information
Through the df command, we can get a general idea of the capacity and usage of disk partitions, but it is not clear which disks each partition is composed of. usually, in order to improve disk availability, we will RAID the disk. To view raid card information, we need to use the MegaCli command, which is located at / opt/MegaRAID/MegaCli.
(1)。 View hard disk information
Sudo MegaCli64-PDList-aALL | egrep'(Raw Size | Device Id | DiskGroup | DiskGroup | PD Type | Speed)'
Explanation: the machine shares two SAS interface disks and eight SSD hard drives with SATA interface.
(2)。 View the RAID level:
Sudo MegaCli64-LDInfo-Lall-aALL | egrep'(RAID | Size)'
Explanation: there are two RAID policies on the machine, RAID-1 and RAID-5.
RAID-1 capacity: 558G, log disk [fully redundant to ensure high availability]
RAID-5 capacity: 3T, data disk
RAID-1 disk capacity calculation: disk capacity / 2
RAID-5 disk capacity calculation: single hard disk capacity * (Nmur1), N > = 3
Combined with the disk information shown above, it is easy to get 2 SAS disks to do RAID-1,8 block SSD disks to do RAID-5.
(3)。 View the cache policy of the disk
Sudo / opt/MegaRAID/MegaCli/MegaCli64-LDGetProp-DskCache-LALL-aALL
Explanation:
In order to ensure the consistency of the data, the log disk turns off the disk write cache; in order to improve the write efficiency, the data disk turns on the disk write cache.
Thank you for your reading, the above is the content of "common commands for linux to view hardware information". After the study of this article, I believe you have a deeper understanding of the problem of common commands for linux to view hardware information, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.