码迷,mamicode.com
首页 > 其他好文 > 详细

命令拷屏之硬件信息

时间:2014-10-30 22:12:24      阅读:287      评论:0      收藏:0      [点我收藏+]

标签:des   style   blog   http   io   color   os   ar   for   

dmesg
cat /proc/cpuinfo,/proc/meminfo,/proc/bus/usb/devices
lspci,lsusb,lshal
dmidecode

[root@rac01 ~]# dmesg |wc -l
1079
[root@rac01 ~]# dmesg |grep cpu
powernow-k8: Found 4 AMD Opteron(TM) Processor 6212                  processors (16 cpu cores) (version 2.20.00)

[root@250-shiyan ~]# cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 21
model           : 1
model name      : AMD Opteron(TM) Processor 6212
stepping        : 2
cpu MHz         : 2600.000
cache size      : 2048 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 13
wp              : yes
flags           : 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 fma4
bogomips        : 5200.00
TLB size        : 1536 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management:

[root@250-shiyan ~]# cat /proc/meminfo
MemTotal:         502168 kB
MemFree:           23752 kB
Buffers:          182860 kB
Cached:           188176 kB
SwapCached:            0 kB
Active:           153864 kB
Inactive:         231064 kB
Active(anon):       2408 kB
Inactive(anon):    11644 kB
Active(file):     151456 kB
Inactive(file):   219420 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       1015800 kB
SwapFree:        1015800 kB
Dirty:               204 kB
Writeback:             0 kB
AnonPages:         13916 kB
Mapped:             6760 kB
Shmem:               160 kB
Slab:              82436 kB
SReclaimable:      32744 kB
SUnreclaim:        49692 kB
KernelStack:         632 kB
PageTables:         1752 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     1266884 kB
Committed_AS:      64700 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      266284 kB
VmallocChunk:   34359459352 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
DirectMap4k:        8192 kB
DirectMap2M:      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/lsusb
usbutils-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/lspci
pciutils-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 -tv
Protocol spec without prior Class and Subclass spec at line 4297
Bus#  7
`-Dev#   1 Vendor 0x0000 Product 0x0000
Bus#  6
`-Dev#   1 Vendor 0x0000 Product 0x0000
Bus#  5
`-Dev#   1 Vendor 0x0000 Product 0x0000
Bus#  4
`-Dev#   1 Vendor 0x0000 Product 0x0000
Bus#  3
`-Dev#   1 Vendor 0x0000 Product 0x0000
Bus#  2
`-Dev#   1 Vendor 0x0000 Product 0x0000
  `-Dev#   2 Vendor 0x046b Product 0xff01
Bus#  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.el5
hal-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|more
Dumping 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-sys
tem-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} (str
ing list)
  info.interfaces = {org.freedesktop.Hal.Device.SystemPowerManagement} (string list)
  info.addons = {hald-addon-acpi} (string list)


[root@rac01 ~]# rpm -qf /usr/sbin/dmidecode
dmidecode-2.11-1.el5
[root@rac01 ~]# rpm -qi dmidecode
Name        : dmidecode                    Relocations: (not relocatable)
Version     : 2.11                              Vendor: Red Hat, Inc.
Release     : 1.el5                         Build Date: Tue 01 Mar 2011 04:40:40 PM CST
Install Date: Tue 27 Aug 2013 09:36:28 AM CST      Build Host: hs20-bc2-3.build.redhat.com
Group       : System Environment/Base       Source RPM: dmidecode-2.11-1.el5.src.rpm
Size        : 187602                           License: GPLv2+
Signature   : DSA/SHA1, Tue 14 Jun 2011 03:41:06 PM CST, Key ID 5326810137017186
Packager    : 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 the
system BIOS according to the SMBIOS/DMI standard. This information
typically includes system manufacturer, model name, serial number,
BIOS version, asset tag as well as a lot of other details of varying
level of interest and reliability depending on the manufacturer.

This will often include usage status for the CPU sockets, expansion
slots (e.g. AGP, PCI, ISA) and memory module slots, and the list of
I/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.11
SMBIOS 2.5 present.

Handle 0x0004, DMI type 4, 42 bytes
Processor 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 capable

Handle 0x0008, DMI type 4, 42 bytes
Processor 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 capable

Handle 0x000C, DMI type 4, 42 bytes
Processor 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 capable

Handle 0x0010, DMI type 4, 42 bytes
Processor 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

 

命令拷屏之硬件信息

标签:des   style   blog   http   io   color   os   ar   for   

原文地址:http://www.cnblogs.com/createyuan/p/4063587.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!