首页 > 代码库 > 命令拷屏之硬件信息
命令拷屏之硬件信息
dmesgcat /proc/cpuinfo,/proc/meminfo,/proc/bus/usb/deviceslspci,lsusb,lshaldmidecode[root@rac01 ~]# dmesg |wc -l1079[root@rac01 ~]# dmesg |grep cpupowernow-k8: Found 4 AMD Opteron(TM) Processor 6212 processors (16 cpu cores) (version 2.20.00)[root@250-shiyan ~]# cat /proc/cpuinfoprocessor : 0vendor_id : AuthenticAMDcpu family : 21model : 1model name : AMD Opteron(TM) Processor 6212stepping : 2cpu MHz : 2600.000cache size : 2048 KBfpu : yesfpu_exception : yescpuid level : 13wp : yesflags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt rdtscp lm constant_tsc up rep_good tsc_reliable nonstop_tsc aperfmperf unfair_spinlock pni pclmulqdq ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx hypervisor lahf_lm extapic abm sse4a misalignsse 3dnowprefetch osvw xop fma4bogomips : 5200.00TLB size : 1536 4K pagesclflush size : 64cache_alignment : 64address sizes : 40 bits physical, 48 bits virtualpower management:[root@250-shiyan ~]# cat /proc/meminfoMemTotal: 502168 kBMemFree: 23752 kBBuffers: 182860 kBCached: 188176 kBSwapCached: 0 kBActive: 153864 kBInactive: 231064 kBActive(anon): 2408 kBInactive(anon): 11644 kBActive(file): 151456 kBInactive(file): 219420 kBUnevictable: 0 kBMlocked: 0 kBSwapTotal: 1015800 kBSwapFree: 1015800 kBDirty: 204 kBWriteback: 0 kBAnonPages: 13916 kBMapped: 6760 kBShmem: 160 kBSlab: 82436 kBSReclaimable: 32744 kBSUnreclaim: 49692 kBKernelStack: 632 kBPageTables: 1752 kBNFS_Unstable: 0 kBBounce: 0 kBWritebackTmp: 0 kBCommitLimit: 1266884 kBCommitted_AS: 64700 kBVmallocTotal: 34359738367 kBVmallocUsed: 266284 kBVmallocChunk: 34359459352 kBHardwareCorrupted: 0 kBAnonHugePages: 0 kBHugePages_Total: 0HugePages_Free: 0HugePages_Rsvd: 0HugePages_Surp: 0Hugepagesize: 2048 kBDirectMap4k: 8192 kBDirectMap2M: 516096 kB[root@rac01 ~]# cat /proc/bus/usb/devices[root@rac01 ~]# cat /proc/bus/pci/devices[root@rac01 ~]# cat /proc/bus/input/devices[root@rac01 ~]# cat /etc/sysconfig/hwconf[root@rac01 ~]# which lsusb/sbin/lsusb[root@rac01 ~]# rpm -qf /sbin/lsusbusbutils-0.71-2.1[root@rac01 ~]# rpm -ql usbutils/sbin/lsusb/usr/share/doc/usbutils-0.71/usr/share/doc/usbutils-0.71/AUTHORS/usr/share/doc/usbutils-0.71/COPYING/usr/share/doc/usbutils-0.71/ChangeLog/usr/share/doc/usbutils-0.71/INSTALL/usr/share/doc/usbutils-0.71/NEWS/usr/share/doc/usbutils-0.71/README/usr/share/man/man8/lsusb.8.gz[root@rac01 ~]# which lspci/sbin/lspci[root@rac01 ~]# rpm -qf /sbin/lspcipciutils-3.1.7-5.el5[root@rac01 ~]# rpm -ql pciutils/sbin/lspci/sbin/setpci/sbin/update-pciids/usr/share/doc/pciutils-3.1.7/usr/share/doc/pciutils-3.1.7/ChangeLog/usr/share/doc/pciutils-3.1.7/README/usr/share/doc/pciutils-3.1.7/pciutils.lsm/usr/share/man/man8/lspci.8.gz/usr/share/man/man8/setpci.8.gz/usr/share/man/man8/update-pciids.8.gz[root@rac01 ~]# lsusb -tvProtocol spec without prior Class and Subclass spec at line 4297Bus# 7`-Dev# 1 Vendor 0x0000 Product 0x0000Bus# 6`-Dev# 1 Vendor 0x0000 Product 0x0000Bus# 5`-Dev# 1 Vendor 0x0000 Product 0x0000Bus# 4`-Dev# 1 Vendor 0x0000 Product 0x0000Bus# 3`-Dev# 1 Vendor 0x0000 Product 0x0000Bus# 2`-Dev# 1 Vendor 0x0000 Product 0x0000 `-Dev# 2 Vendor 0x046b Product 0xff01Bus# 1`-Dev# 1 Vendor 0x0000 Product 0x0000 |-Dev# 2 Vendor 0x0424 Product 0x2514 `-Dev# 3 Vendor 0x0928 Product 0x0007[root@rac01 ~]# lspci -tv-[0000:00]-+-00.0 Advanced Micro Devices [AMD] nee ATI RD890 Northbridge only dual slot (2x16) PCI-e GFX Hydra part +-04.0-[01]--+-00.0 Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet | \-00.1 Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet +-06.0-[02]--+-00.0 Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet | \-00.1 Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet +-0b.0-[03]----00.0 LSI Logic / Symbios Logic MegaRAID SAS 2008 [Falcon] +-0c.0-[04]----00.0 QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA +-0d.0-[05]----00.0 QLogic Corp. ISP2532-based 8Gb Fibre Channel to PCI Express HBA +-11.0 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] +-12.0 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller +-12.1 Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller +-12.2 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller +-13.0 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller +-13.1 Advanced Micro Devices [AMD] nee ATI SB7x0 USB OHCI1 Controller +-13.2 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller +-14.0 Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller +-14.3 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller +-14.4-[06]----00.0 ASPEED Technology, Inc. ASPEED Graphics Family +-14.5 Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller +-18.0 Advanced Micro Devices [AMD] Family 15h Processor Function 0 +-18.1 Advanced Micro Devices [AMD] Family 15h Processor Function 1 +-18.2 Advanced Micro Devices [AMD] Family 15h Processor Function 2 +-18.3 Advanced Micro Devices [AMD] Family 15h Processor Function 3 +-18.4 Advanced Micro Devices [AMD] Family 15h Processor Function 4 +-18.5 Advanced Micro Devices [AMD] Family 15h Processor Function 5 +-19.0 Advanced Micro Devices [AMD] Family 15h Processor Function 0 +-19.1 Advanced Micro Devices [AMD] Family 15h Processor Function 1 +-19.2 Advanced Micro Devices [AMD] Family 15h Processor Function 2 +-19.3 Advanced Micro Devices [AMD] Family 15h Processor Function 3 +-19.4 Advanced Micro Devices [AMD] Family 15h Processor Function 4 +-19.5 Advanced Micro Devices [AMD] Family 15h Processor Function 5 +-1a.0 Advanced Micro Devices [AMD] Family 15h Processor Function 0 +-1a.1 Advanced Micro Devices [AMD] Family 15h Processor Function 1 +-1a.2 Advanced Micro Devices [AMD] Family 15h Processor Function 2 +-1a.3 Advanced Micro Devices [AMD] Family 15h Processor Function 3 +-1a.4 Advanced Micro Devices [AMD] Family 15h Processor Function 4 +-1a.5 Advanced Micro Devices [AMD] Family 15h Processor Function 5 +-1b.0 Advanced Micro Devices [AMD] Family 15h Processor Function 0 +-1b.1 Advanced Micro Devices [AMD] Family 15h Processor Function 1 +-1b.2 Advanced Micro Devices [AMD] Family 15h Processor Function 2 +-1b.3 Advanced Micro Devices [AMD] Family 15h Processor Function 3 +-1b.4 Advanced Micro Devices [AMD] Family 15h Processor Function 4 \-1b.5 Advanced Micro Devices [AMD] Family 15h Processor Function 5[root@rac01 ~]# rpm -qf /usr/bin/lshal 不知道为何显示两个hal-0.5.8.1-62.el5hal-0.5.8.1-62.el5[root@rac01 ~]# rpm -ql hal 这个软件比较庞大/etc/dbus-1/system.d/etc/dbus-1/system.d/hal.conf/etc/hal/etc/hal/fdi/etc/hal/fdi/information/etc/hal/fdi/policy/etc/hal/fdi/preprobe/etc/rc.d/init.d/haldaemon/etc/udev/rules.d/90-hal.rules/usr/bin/hal-device/usr/bin/hal-find-by-capability/usr/bin/hal-find-by-property/usr/bin/hal-get-property/usr/bin/hal-set-property/usr/bin/lshal[root@rac01 ~]# lshal|moreDumping 160 device(s) from the Global Device List:-------------------------------------------------udi = ‘/org/freedesktop/Hal/devices/computer‘ info.callouts.add = {‘hal-storage-cleanup-all-mountpoints‘} (string list) org.freedesktop.Hal.Device.SystemPowerManagement.method_execpaths = {‘hal-system-power-suspend‘, ‘hal-system-power-suspend-clear-error‘, ‘hal-system-power-hibernate‘, ‘hal-system-power-hibernate-clear-error‘, ‘hal-system-power-shutdown‘, ‘hal-system-power-reboot‘, ‘hal-system-power-set-power-save‘} (string list) org.freedesktop.Hal.Device.SystemPowerManagement.method_argnames = {‘num_seconds_to_sleep‘, ‘‘, ‘‘, ‘‘, ‘‘, ‘‘, ‘enable_power_save‘} (string list) org.freedesktop.Hal.Device.SystemPowerManagement.method_signatures = {‘i‘, ‘‘, ‘‘, ‘‘, ‘‘, ‘‘, ‘b‘} (string list) org.freedesktop.Hal.Device.SystemPowerManagement.method_names = {‘Suspend‘, ‘SuspendClearError‘, ‘Hibernate‘, ‘HibernateClearError‘, ‘Shutdown‘, ‘Reboot‘, ‘SetPowerSave‘} (string list) info.interfaces = {‘org.freedesktop.Hal.Device.SystemPowerManagement‘} (string list) info.addons = {‘hald-addon-acpi‘} (string list)[root@rac01 ~]# rpm -qf /usr/sbin/dmidecodedmidecode-2.11-1.el5[root@rac01 ~]# rpm -qi dmidecodeName : dmidecode Relocations: (not relocatable)Version : 2.11 Vendor: Red Hat, Inc.Release : 1.el5 Build Date: Tue 01 Mar 2011 04:40:40 PM CSTInstall Date: Tue 27 Aug 2013 09:36:28 AM CST Build Host: hs20-bc2-3.build.redhat.comGroup : System Environment/Base Source RPM: dmidecode-2.11-1.el5.src.rpmSize : 187602 License: GPLv2+Signature : DSA/SHA1, Tue 14 Jun 2011 03:41:06 PM CST, Key ID 5326810137017186Packager : Red Hat, Inc. <http://bugzilla.redhat.com/bugzilla>URL : http://www.nongnu.org/dmidecode/Summary : Tool to analyse BIOS DMI data.Description :dmidecode reports information about x86 hardware as described in thesystem BIOS according to the SMBIOS/DMI standard. This informationtypically includes system manufacturer, model name, serial number,BIOS version, asset tag as well as a lot of other details of varyinglevel of interest and reliability depending on the manufacturer.This will often include usage status for the CPU sockets, expansionslots (e.g. AGP, PCI, ISA) and memory module slots, and the list ofI/O ports (e.g. serial, parallel, USB).[root@rac01 ~]# rpm -ql dmidecode/usr/sbin/biosdecode/usr/sbin/dmidecode/usr/sbin/ownership/usr/sbin/vpddecode/usr/share/doc/dmidecode-2.11/usr/share/doc/dmidecode-2.11/AUTHORS/usr/share/doc/dmidecode-2.11/CHANGELOG/usr/share/doc/dmidecode-2.11/LICENSE/usr/share/doc/dmidecode-2.11/README/usr/share/man/man8/biosdecode.8.gz/usr/share/man/man8/dmidecode.8.gz/usr/share/man/man8/ownership.8.gz/usr/share/man/man8/vpddecode.8.gz[root@rac01 ~]# dmidecode -t processor# dmidecode 2.11SMBIOS 2.5 present.Handle 0x0004, DMI type 4, 42 bytesProcessor Information Socket Designation: CPU 1 Type: Central Processor Family: Opteron Manufacturer: AMD Opteron(TM) P ID: 12 0F 60 00 FF FB 8B 17 Signature: Family 21, Model 1, Stepping 2 Flags: 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) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) HTT (Multi-threading) Version: AMD Opteron(TM) Processor 6212 Voltage: 1.4 V External Clock: 200 MHz Max Speed: 2600 MHz Current Speed: 2600 MHz Status: Populated, Enabled Upgrade: Socket AM3 L1 Cache Handle: 0x0005 L2 Cache Handle: 0x0006 L3 Cache Handle: 0x0007 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 8 Core Enabled: 8 Thread Count: 8 Characteristics: 64-bit capableHandle 0x0008, DMI type 4, 42 bytesProcessor Information Socket Designation: CPU 2 Type: Central Processor Family: Opteron Manufacturer: AMD Opteron(TM) P ID: 12 0F 60 00 FF FB 8B 17 Signature: Family 21, Model 1, Stepping 2 Flags: 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) MMX (MMX technology supported) FXSR (FXSAVE and FXSTOR instructions supported) SSE (Streaming SIMD extensions) SSE2 (Streaming SIMD extensions 2) HTT (Multi-threading) Version: AMD Opteron(TM) Processor 6212 Voltage: 1.4 V External Clock: 200 MHz Max Speed: 2600 MHz Current Speed: 2600 MHz Status: Populated, Enabled Upgrade: Socket AM3 L1 Cache Handle: 0x0009 L2 Cache Handle: 0x000A L3 Cache Handle: 0x000B Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Core Count: 8 Core Enabled: 8 Thread Count: 8 Characteristics: 64-bit capableHandle 0x000C, DMI type 4, 42 bytesProcessor Information Socket Designation: CPU 3 Type: Central Processor Family: <OUT OF SPEC> Manufacturer: ID: 00 00 00 00 00 00 00 00 Version: Voltage: 0.0 V External Clock: Unknown Max Speed: Unknown Current Speed: Unknown Status: Unpopulated Upgrade: <OUT OF SPEC> L1 Cache Handle: 0x000D L2 Cache Handle: 0x000E L3 Cache Handle: 0x000F Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Characteristics: 64-bit capableHandle 0x0010, DMI type 4, 42 bytesProcessor Information Socket Designation: CPU 4 Type: Central Processor Family: <OUT OF SPEC> Manufacturer: ID: 00 00 00 00 00 00 00 00 Version: Voltage: 0.0 V External Clock: Unknown Max Speed: Unknown Current Speed: Unknown Status: Unpopulated Upgrade: <OUT OF SPEC> L1 Cache Handle: 0x0011 L2 Cache Handle: 0x0012 L3 Cache Handle: 0x0013 Serial Number: Not Specified Asset Tag: Not Specified Part Number: Not Specified Characteristics: 64-bit capable
命令拷屏之硬件信息
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。