命令拷屏之硬件信息

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

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

[[email protected]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:

[[email protected]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

[[email protected] ~]# cat /proc/bus/usb/devices
[[email protected] ~]# cat /proc/bus/pci/devices
[[email protected] ~]# cat /proc/bus/input/devices
[[email protected] ~]# cat /etc/sysconfig/hwconf

[[email protected] ~]# which lsusb
/sbin/lsusb
[[email protected] ~]# rpm -qf /sbin/lsusb
usbutils-0.71-2.1
[[email protected] ~]# 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

[[email protected] ~]# which lspci
/sbin/lspci
[[email protected] ~]# rpm -qf /sbin/lspci
pciutils-3.1.7-5.el5
[[email protected] ~]# 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

[[email protected] ~]# 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
[[email protected] ~]# 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

[[email protected] ~]# rpm -qf /usr/bin/lshal    不知道为何显示两个
hal-0.5.8.1-62.el5
hal-0.5.8.1-62.el5
[[email protected] ~]# 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

[[email protected] ~]# 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)

[[email protected] ~]# rpm -qf /usr/sbin/dmidecode
dmidecode-2.11-1.el5
[[email protected] ~]# 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).
[[email protected] ~]# 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

[[email protected] ~]# 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
时间: 2024-10-12 10:09:22

命令拷屏之硬件信息的相关文章

命令拷屏之存储信息

磁盘与分区及文件系统 [[email protected] ~]# hdparm -i /dev/sda 查看硬盘参数[[email protected] ~]# fdisk -l 查看所有分区[[email protected] ~]# df -h|column -t 查看各分区使用情况[[email protected] ~]# mount|column -t 查看挂载的分区状态[[email protected] ~]# du -sh /var/log 查看指定目录大小[[email pr

dmidecode命令详解(获取硬件信息)

一.dmidecode简介 dmidecode允许你在Linux系统下获取有关硬件方面的信息.dmidecode遵循SMBIOS/DMI标准,其输出的信息包括BIOS.系统.主板.处理器.内存.缓存等等. DMI(Desktop Management Interface,DMI)就是帮助收集电脑系统信息的管理系统,DMI信息的收集必须在严格遵照SMBIOS规范的前提下进行.SMBIOS(System Management BIOS)是主板或系统制造者以标准格式显示产品管理信息所需遵循的统一规范.

sed命令拷屏

工作原理语法格式 工作原理sed是一个非交互式的流编辑器.所谓非交互式,是指使用sed只能在命令行下输入编辑命令来编辑文本,然后在屏幕上查看输出:而所谓流编辑器,是指sed每次只从文件(或输入)读入一行,然后对该行进行指定的处理,并将结果输出到屏幕(除非取消了屏幕输出又没有显式地使用打印命令),接着读入下一行.整个文件像流水一样被逐行处理然后逐行输出.下面我们看一下sed的工作过程.sed不是在原输入上直接进行处理的,而是先将读入的行放到缓冲区中,对缓冲区里的内容进行处理,处理完毕后也不会写回原

ceph命令拷屏

常用命令 ceph df ceph features ceph fs ls ceph fs status ceph fsid ceph health ceph -s ceph status ceph mgr module ls ceph mgr module enable dashboard ceph mgr services ceph mon feature ls ceph node ls ceph osd crush rule ls ceph osd crush rule dump ceph

命令拷屏

[[email protected] ~]# yum install rpcbind Installed:  rpcbind.x86_64 0:0.2.0-11.el6Dependency Installed:  libgssglue.x86_64 0:0.1-11.el6                                               libtirpc.x86_64 0:0.2.1-6.el6_5.2[[email protected] network-script

Linux 系统下查看硬件信息命令大全

有许多命令可以用来查看 Linux 系统上的硬件信息.有些命令只能够打印出像 CPU 和内存这一特定的硬件组件信息,另外一些命令可以查看多种硬件组件的信息. 这个教程可以带大家快速了解一下查看各种硬件设备的信息和配置详情的最常用的命令. lscpu lscpu命令能够查看 CPU 和处理单元的信息.该命令没有任何其他选项或者别的功能. lscpu 运行该命令会看到下面输出: lspci lspci是另一个命令行工具,可以用来列出所有的 PCI 总线,还有与 PCI 总线相连的设备的详细信息,比如

windows系统自带命令查看硬件信息,怎样dos命令查看硬盘和内存/CPU信息

如何在windows系统自带命令查看硬件信息,怎样dos命令查看硬盘和内存/CPU信息?最直接的是:开始→运行→CMD打开命令提示符,在该窗口下输入systeminfo执行,即可看到几乎所有想知道的系统信息,甚至包括机器上已安装的网卡及其IP. 问题描述: 如何从系统中 查看主板上内存条的数量. 最佳答案: 在cmd命令下 输入:wmic memorychip list brief 就会看到内存条的数量 如何在windows系统自带命令查看硬件信息? 对于在windows下查看系统信息大家一定不

Linux硬件信息查询命令

系统 uname -a              # 查看内核/操作系统/CPU信息 Linux hostname 2.6.18-128.el5 #1 SMP Wed Dec 17 11:41:38 EST 2008 x86_64 x86_64 x86_64 GNU/Linux head -n 1 /etc/issue      # 查看操作系统版本 Red Hat Enterprise Linux Server release 5.3 (Tikanga) cat /proc/cpuinfo  

Linux用户和组管理,查看软件缓存,通过命令查看硬件信息(cpu,版本,序列号,内存,主板,内核等)

 通过修改/etc/inittab.通过这个文件修改系统的启动方式. ls –l /etc/ | more   (管道),将前面的结果交给后面的命令进行处理. 在linux中遇到问题使用man命令. 查找文件信息并将文件存储到一个制定的文件中. ls –la > "a.txt" 创建组名: 创建组: 查看Linux中所有组的信息:cat /etc/group | more 其中root:x:0 root:表示组名,x:表示加密后的权限声明,0:表示root组的id号. 7创建