国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

【Linux】查看服務器硬件信息

這篇具有很好參考價值的文章主要介紹了【Linux】查看服務器硬件信息。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

查看服務器硬件信息

dmidecode

root@uos-PC:/home/uos/Downloads/log/var/log/tuned# dmidecode -h
Usage: dmidecode [OPTIONS]
Options are:
-d, --dev-mem FILE Read memory from device FILE (default: /dev/mem)
-h, --help Display this help text and exit
-q, --quiet Less verbose output
-s, --string KEYWORD Only display the value of the given DMI string
-t, --type TYPE Only display the entries of given type
-H, --handle HANDLE Only display the entry of given handle
-u, --dump Do not decode the entries
–dump-bin FILE Dump the DMI data to a binary file
–from-dump FILE Read the DMI data from a binary file
–no-sysfs Do not attempt to read DMI data from sysfs files
–oem-string N Only display the value of the given OEM string
-V, --version Display the version and exit

例如查看電源信息

$ dmidecode > /tmp/hardware.log
$ grep -ni "system power" /tmp/hardware.log

551:System Power Supply
## 可以進入/tmp/hardware.log 查看具體內(nèi)容
System Power Supply
        Power Unit Group: 1
        Location: To Be Filled By O.E.M.
        Name: To Be Filled By O.E.M.
        Manufacturer: To Be Filled By O.E.M.
        Serial Number: To Be Filled By O.E.M.
        Asset Tag: To Be Filled By O.E.M.
        Model Part Number: To Be Filled By O.E.M.
        Revision: To Be Filled By O.E.M.
        Max Power Capacity: Unknown
        Status: Present, OK
        Type: Switching
        Input Voltage Range Switching: Auto-switch
        Plugged: Yes
        Hot Replaceable: No
        Input Voltage Probe Handle: 0x0035
        Cooling Device Handle: 0x0037
        Input Current Probe Handle: 0x0038

如果電源是雙電源,則會顯示兩組一樣的信息

#有效輸入關(guān)鍵詞:
bios
system
baseboard
chassis
processor
memory
Cache
connector
slot

全部編碼列表

#全部編碼列表
0 BIOS
1 System
2 Base Board
3 Chassis
4 Processor
5 Memory Controller
6 Memory Module
7 Cache
8 Port Connector
9 System Slots
10 On Board Devices
11 OEM Strings
12 System Configuration Options
13 BIOS Language
14 Group Associations
15 System Event Log
16 Physical Memory Array
17 Memory Device
18 32-bit Memory Error
19 Memory Array Mapped Address
20 Memory Device Mapped Address
21 Built-in Pointing Device
22 Portable Battery
23 System Reset
24 Hardware Security
25 System Power Controls
26 Voltage Probe
27 Cooling Device
28 Temperature Probe
29 Electrical Current Probe
30 Out-of-band Remote Access
31 Boot Integrity Services
32 System Boot
33 64-bit Memory Error
34 Management Device
35 Management Device Component
36 Management Device Threshold Data
37 Memory Channel
38 IPMI Device
39 Power Supply
40 Additional Information
41 Onboard Device

可以通過命令

dmidecode -t 編碼

來獲取指定的硬件信息
例如獲取電源信息

$ /usr/sbin/dmidecode -t 39
# dmidecode 3.2
Getting SMBIOS data from sysfs.
SMBIOS 3.2.0 present.

Handle 0x0039, DMI type 39, 22 bytes
System Power Supply
        Power Unit Group: 1
        Location: To Be Filled By O.E.M.
        Name: To Be Filled By O.E.M.
        Manufacturer: To Be Filled By O.E.M.
        Serial Number: To Be Filled By O.E.M.
        Asset Tag: To Be Filled By O.E.M.
        Model Part Number: To Be Filled By O.E.M.
        Revision: To Be Filled By O.E.M.
        Max Power Capacity: Unknown
        Status: Present, OK
        Type: Switching
        Input Voltage Range Switching: Auto-switch
        Plugged: Yes
        Hot Replaceable: No
        Input Voltage Probe Handle: 0x0035
        Cooling Device Handle: 0x0037
        Input Current Probe Handle: 0x0038

使用lshw

# lshw --help
Hardware Lister (lshw) - 
usage: lshw [-format] [-options ...]
       lshw -version

        -version        print program version ()

format can be
        -html           output hardware tree as HTML
        -xml            output hardware tree as XML
        -json           output hardware tree as a JSON object
        -short          output hardware paths
        -businfo        output bus information

options can be
        -class CLASS    only show a certain class of hardware
        -C CLASS        same as '-class CLASS'
        -c CLASS        same as '-class CLASS'
        -disable TEST   disable a test (like pci, isapnp, cpuid, etc. )
        -enable TEST    enable a test (like pci, isapnp, cpuid, etc. )
        -quiet          don't display status
        -sanitize       sanitize output (remove sensitive information like serial numbers, etc.)
        -numeric        output numeric IDs (for PCI, USB, etc.)
        -notime         exclude volatile attributes (timestamps) from output

lshw > hardware.txt
會記錄所有硬件的相關(guān)信息
但可以使用其他命令查看
例如內(nèi)存相關(guān)可以使用lsmem和lshw中的顯示內(nèi)存部分是相同的
cpu可以使用lscpu查看文章來源地址http://www.zghlxwxcb.cn/news/detail-413219.html

到了這里,關(guān)于【Linux】查看服務器硬件信息的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權(quán),不承擔相關(guān)法律責任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務器費用

相關(guān)文章

  • Linux 服務器 CPU 詳細信息查看、物理 CPU 以及邏輯 CPU

    Linux 服務器 CPU 詳細信息查看、物理 CPU 以及邏輯 CPU

    什么是CPU CPU: (Central Processing Unit)也稱為中央處理器,主要通過內(nèi)部總線,建立起芯片內(nèi)各部件之間的信息傳輸通路 查看CPU詳細信息 : 我們平常在操作Linux服務器時,如何能夠知道服務器的CPU的詳細信息呢 [xxx@xxx ~]# ?cat /proc/cpuinfo | grep name | cut -f2 -d: | uniq -c 16: CPU 核心數(shù) Intel?

    2024年01月25日
    瀏覽(35)
  • 服務器硬件規(guī)格常用查看命令——通用命令

    服務器硬件規(guī)格常用查看命令——通用命令

    使用lshw命令可以查看服務器硬件配置的詳細信息。使用它可以在支持DMI的x86或IA-64系統(tǒng)以及某些PowerPC機器上打印內(nèi)存配置、固件版本、主板配置、CPU版本、G4可以工作)。目前該命令支持 CPU頻率、緩存、總線速度等信息(已知PowerMac DMI(僅限x86和IA-64)、OpenFimware設(shè)備樹(僅

    2024年02月05日
    瀏覽(30)
  • Centos7 對新服務器的硬件信息概覽
  • 查看服務器連接的交換機信息

    要查詢與服務器連接的交換機端口,可以使用lldptool與交換機進行交互并獲取相關(guān)信息。 lldptool是一個用于管理和控制鏈路層發(fā)現(xiàn)協(xié)議(LLDP)的實用工具。LLDP是一種網(wǎng)絡(luò)協(xié)議,允許網(wǎng)絡(luò)設(shè)備(如交換機、路由器等)在網(wǎng)絡(luò)中相互發(fā)現(xiàn)和交換有關(guān)自身的信息。 lldptool允許用戶查

    2024年02月02日
    瀏覽(41)
  • 使用Windows查看服務器RAID信息

    在管理和監(jiān)控服務器的過程中,了解服務器的RAID(冗余陣列磁盤)信息非常重要。RAID技術(shù)可以提供數(shù)據(jù)冗余和性能增強,確保數(shù)據(jù)的安全性和可靠性。在Windows操作系統(tǒng)中,可以通過幾種方式來查看服務器的RAID信息,包括使用磁盤管理工具和命令行工具。 下面將介紹如何使

    2024年02月04日
    瀏覽(19)
  • Jetson硬件平臺狀態(tài)查看工具jtop安裝,服務器平臺上可以通過nvtop工具來查看資源使用情況

    首先安裝支持環(huán)境包(maybe…need) sudo apt-get install git cmake sudo apt-get install python3-dev sudo apt-get install libhdf5-serial-dev hdf5-tools sudo apt-get install libatlas-base-dev gfortran 安裝 pip3 因為最終需要用 pip3 安裝,所以這一步是不可缺少的。 sudo apt install python3-pip 安裝 jtop sudo -H pip3 install -U jetso

    2023年04月23日
    瀏覽(25)
  • 查看服務器的配置,系統(tǒng),cpu等信息

    查看服務器的配置,系統(tǒng),cpu等信息

    查看Linux服務器配置 目錄 1、查看服務器的操作系統(tǒng) ?編輯2.查看CPU信息??使用`lscpu`命令查看服務器CPU信息? 3.查看Linux服務器CPU核數(shù) ?4.查看內(nèi)存信息?查看內(nèi)存使用情況:free -h 5.查看硬盤大小? ?6.查看服務器網(wǎng)卡設(shè)備配置信息 1、查看服務器的操作系統(tǒng) 查看操作系統(tǒng) 命令

    2024年02月04日
    瀏覽(31)
  • 統(tǒng)信UOS服務器系統(tǒng)-如何查看版本信息

    統(tǒng)信UOS服務器系統(tǒng)-如何查看版本信息

    在統(tǒng)信服務器操作系統(tǒng)V20官網(wǎng)鏡像下載列表里面看,有A版(兼容OpenAnolis社區(qū)技術(shù)路線)和E版(兼容openEuler社區(qū)技術(shù)路線)鏡像的區(qū)別,但從版本發(fā)行標記里面看,從1050之后,都是同時發(fā)布,應該是版本進行了融合,實現(xiàn)了發(fā)版節(jié)奏一致,使用習慣和兼容性基本一致,特殊應

    2024年04月11日
    瀏覽(16)
  • 浪潮服務器使用ARCCONF查看RAID配置信息

    浪潮服務器使用ARCCONF查看RAID配置信息

    提示:文章寫完后,目錄可以自動生成,如何生成可參考右邊的幫助文檔 最近接管了一個浪潮服務器,系統(tǒng)是 Windows Server 2022 ,本來想打開硬件管理器看看硬盤配置的,結(jié)果只顯示 INSPUR LOGICAL VOLUME ,而且服務器是24小時開機的,所以只能借助RAID管理工具了,我這款RAID控制器

    2024年04月23日
    瀏覽(28)
  • 查看服務器/IIS日志、log、訪問信息基本方法

    IIS的錯誤日志通常位于特定的文件夾中,記錄了服務器上發(fā)生的錯誤和異常。這些日志可以提供有關(guān)網(wǎng)站或應用程序出現(xiàn)問題的詳細信息。默認情況下,IIS錯誤日志存儲在以下路徑: C:inetpublogsLogFiles 在這個目錄下,可以找到以 u_errYYMMDD 的格式命名的錯誤日志文件,其中

    2024年02月09日
    瀏覽(22)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包