免费做网站的优缺点,数字媒体技术就业方向,台州超值营销型网站建设地址,个旧做网站哪家公司好在线Linux命令查询工具
dmidecode
在Linux系统下获取有关硬件方面的信息
补充说明
dmidecode命令可以让你在Linux系统下获取有关硬件方面的信息。dmidecode的作用是将DMI数据库中的信息解码#xff0c;以可读的文本方式显示。由于DMI信息可以人为修改#xff0c;因此里面…在线Linux命令查询工具
dmidecode
在Linux系统下获取有关硬件方面的信息
补充说明
dmidecode命令可以让你在Linux系统下获取有关硬件方面的信息。dmidecode的作用是将DMI数据库中的信息解码以可读的文本方式显示。由于DMI信息可以人为修改因此里面的信息不一定是系统准确的信息。dmidecode遵循SMBIOS/DMI标准其输出的信息包括BIOS、系统、主板、处理器、内存、缓存等等。 DMIDesktop Management Interface,DMI就是帮助收集电脑系统信息的管理系统DMI信息的收集必须在严格遵照SMBIOS规范的前提下进行。SMBIOSSystem Management BIOS是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范。SMBIOS和DMI是由行业指导机构Desktop Management Task Force(DMTF)起草的开放性的技术标准其中DMI设计适用于任何的平台和操作系统。 DMI充当了管理工具和系统层之间接口的角色。它建立了标准的可管理系统更加方便了电脑厂商和用户对系统的了解。DMI的主要组成部分是Management Information Format(MIF)数据库。这个数据库包括了所有有关电脑系统和配件的信息。通过DMI用户可以获取序列号、电脑厂商、串口信息以及其它系统配件信息。
语法
dmidecode [选项]选项
-d(default:/dev/mem)从设备文件读取信息输出内容与不加参数标准输出相同。
-h显示帮助信息。
-s只显示指定DMI字符串的信息。(string)
-t只显示指定条目的信息。(type)
-u显示未解码的原始条目内容。
--dump-bin file将DMI数据转储到一个二进制文件中。
--from-dump FILE从一个二进制文件读取DMI数据。
-V显示版本信息。dmidecode参数string及type列表 1Valid string keywords are
bios-vendorbios-versionbios-release-datesystem-manufacturersystem-product-namesystem-versionsystem-serial-numbersystem-uuidbaseboard-manufacturerbaseboard-product-namebaseboard-versionbaseboard-serial-numberbaseboard-asset-tagchassis-manufacturerchassis-typechassis-versionchassis-serial-numberchassis-asset-tagprocessor-familyprocessor-manufacturerprocessor-versionprocessor-frequency 2Valid type keywords arebiossystembaseboardchassisprocessormemoryCacheconnectorslot 3type全部编码列表BIOSSystemBase BoardChassisProcessorMemory ControllerMemory ModuleCachePort ConnectorSystem SlotsOn Board DevicesOEM StringsSystem Configuration OptionsBIOS LanguageGroup AssociationsSystem Event LogPhysical Memory ArrayMemory Device32-bit Memory ErrorMemory Array Mapped AddressMemory Device Mapped AddressBuilt-in Pointing DevicePortable BatterySystem ResetHardware SecuritySystem Power ControlsVoltage ProbeCooling DeviceTemperature ProbeElectrical Current ProbeOut-of-band Remote AccessBoot Integrity ServicesSystem Boot64-bit Memory ErrorManagement DeviceManagement Device ComponentManagement Device Threshold DataMemory ChannelIPMI DevicePower SupplyAdditional InformationOnboard Device
实例
dmidecode -t 1 # 查看服务器信息
dmidecode | grep Product Name # 查看服务器型号
dmidecode |grep Serial Number # 查看主板的序列号
dmidecode -t 2 # 查看主板信息
dmidecode -s system-serial-number # 查看系统序列号
dmidecode -t memory # 查看内存信息
dmidecode -t 11 # 查看OEM信息
dmidecode -t 17 # 查看内存条数
dmidecode -t 16 # 查询内存信息
dmidecode -t 4 # 查看CPU信息cat /proc/scsi/scsi # 查看服务器硬盘信息不带选项执行dmidecode命令通常会输出所有的硬件信息。dmidecode命令有个很有用的选项-t可以按指定类型输出相关信息假如要获得处理器方面的信息则可以执行
[rootlocalhost ~]# dmidecode -t processor
# dmidecode 2.11
SMBIOS 2.5 present.Handle 0x0001, DMI type 4, 40 bytes
Processor InformationSocket Designation: Node 1 Socket 1Type: Central ProcessorFamily: Xeon MPManufacturer: Intel(R) Corporationid: C2 06 02 00 FF FB EB BFSignature: Type 0, Family 6, Model 44, Stepping 2Flags:FPU (Floating-point unit on-chip)VME (Virtual mode extension)DE (Debugging extension)PSE (Page size extension)TSC (time stamp counter)MSR (Model specific registers)PAE (Physical address extension)MCE (Machine check exception)CX8 (CMPXCHG8 instruction supported)APIC (On-chip APIC hardware supported)SEP (Fast system call)MTRR (Memory type range registers)PGE (Page global enable)MCA (Machine check architecture)CMOV (Conditional move instruction supported)PAT (Page attribute table)PSE-36 (36-bit page size extension)CLFSH (CLFLUSH instruction supported)DS (Debug store)ACPI (ACPI supported)MMX (MMX technology supported)FXSR (FXSAVE and FXSTOR instructions supported)SSE (Streaming SIMD extensions)SSE2 (Streaming SIMD extensions 2)ss (Self-snoop)HTT (Multi-threading)TM (Thermal monitor supported)PBE (Pending break enabled)Version: Intel(R) Xeon(R) CPU E5620 2.40GHzVoltage: 1.2 VExternal Clock: 5866 MHzMax Speed: 4400 MHzCurrent Speed: 2400 MHzStatus: Populated, EnabledUpgrade: ZIF SocketL1 Cache Handle: 0x0002L2 Cache Handle: 0x0003L3 Cache Handle: 0x0004Serial Number: Not SpecifiedAsset Tag: Not SpecifiedPart Number: Not SpecifiedCore Count: 4Core Enabled: 4Thread Count: 8Characteristics:64-bit capableHandle 0x0055, DMI type 4, 40 bytes
Processor InformationSocket Designation: Node 1 Socket 2Type: Central ProcessorFamily: Xeon MPManufacturer: Not SpecifiedID: 00 00 00 00 00 00 00 00Signature: Type 0, Family 0, Model 0, Stepping 0Flags: NoneVersion: Not SpecifiedVoltage: 1.2 VExternal Clock: 5866 MHzMax Speed: 4400 MHzCurrent Speed: UnknownStatus: UnpopulatedUpgrade: ZIF SocketL1 Cache Handle: Not ProvidedL2 Cache Handle: Not ProvidedL3 Cache Handle: Not ProvidedSerial Number: Not SpecifiedAsset Tag: Not SpecifiedPart Number: Not SpecifiedCharacteristics: None查看内存的插槽数已经使用多少插槽。每条内存多大已使用内存多大
dmidecode|grep -P -A5 Memory\sDevice|grep Size|grep -v Range # Size: 2048 MB
# Size: 2048 MB
# Size: 4096 MB
# Size: No Module Installed查看内存支持的最大内存容量
dmidecode|grep -P Maximum\sCapacity# Maximum Capacity: 16 GB查看内存的频率
dmidecode|grep -A16 Memory Device# Memory Device
# Array Handle: 0x1000
# Error Information Handle: Not Provided
# Total Width: 72 bits
# Data Width: 64 bits
# Size: 2048 MB
# Form Factor: DIMM
# Set: 1
# Locator: DIMM_A1
# Bank Locator: Not Specified
# Type: DDR3
# Type Detail: Synchronous Unbuffered (Unregistered)
# Speed: 1333 MHz
# Manufacturer: 00CE000080CE
# Serial Number: 4830F3E1
# Asset Tag: 01093200
# Part Number: M391B5673EH1-CH9
# --
# Memory Device
# Array Handle: 0x1000
# Error Information Handle: Not Provided
# Total Width: 72 bits
# Data Width: 64 bits
# Size: 2048 MB
# Form Factor: DIMM
# Set: 1
# Locator: DIMM_A2
# Bank Locator: Not Specified
# Type: DDR3
# Type Detail: Synchronous Unbuffered (Unregistered)
# Speed: 1333 MHz
# Manufacturer: 00AD000080AD
# Serial Number: 1BA1F0B5
# Asset Tag: 01110900
# Part Number: HMT325U7BFR8C-H9
# --dmidecode|grep -A16 Memory Device|grep Speed# Speed: 1333 MHz
# Speed: 1333 MHz
# Speed: 1333 MHz
# Speed: Unknownshell在线Linux命令查询工具